by Robin at 20240416 #291

Merged
chenhao merged 1 commits from dev-feat-IRONFANS-70-Robin into feat-IRONFANS-70 2024-04-16 19:00:10 +08:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit 4fe9faa1bb - Show all commits

View File

@ -1678,14 +1678,15 @@ func (s *Service) utilFillZoneMomentsWithApiVOInfo(ctx *gin.Context, list []*dbs
}
// 填充铁粉解锁信息
if zidZuMap[zid].IsUnlockIronfanship() {
zu, ok := zidZuMap[zid]
if ok && zu.IsUnlockIronfanship() {
vo.IsIronfanshipUnlocked = consts.IsIronfanshipUnlocked_Yes
} else {
vo.IsIronfanshipUnlocked = consts.IsIronfanshipUnlocked_No
}
// 填充超粉解锁信息
if zidZuMap[zid].IsUnlockSuperfanship() {
if ok && zu.IsUnlockSuperfanship() {
vo.IsSuperfanshipUnlocked = consts.IsSuperfanshipUnlocked_Yes
} else {
vo.IsSuperfanshipUnlocked = consts.IsSuperfanshipUnlocked_No