Merge pull request 'by Robin at 20240416' (#291) from dev-feat-IRONFANS-70-Robin into feat-IRONFANS-70
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/291
This commit is contained in:
commit
7553739396
|
@ -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
|
vo.IsIronfanshipUnlocked = consts.IsIronfanshipUnlocked_Yes
|
||||||
} else {
|
} else {
|
||||||
vo.IsIronfanshipUnlocked = consts.IsIronfanshipUnlocked_No
|
vo.IsIronfanshipUnlocked = consts.IsIronfanshipUnlocked_No
|
||||||
}
|
}
|
||||||
|
|
||||||
// 填充超粉解锁信息
|
// 填充超粉解锁信息
|
||||||
if zidZuMap[zid].IsUnlockSuperfanship() {
|
if ok && zu.IsUnlockSuperfanship() {
|
||||||
vo.IsSuperfanshipUnlocked = consts.IsSuperfanshipUnlocked_Yes
|
vo.IsSuperfanshipUnlocked = consts.IsSuperfanshipUnlocked_Yes
|
||||||
} else {
|
} else {
|
||||||
vo.IsSuperfanshipUnlocked = consts.IsSuperfanshipUnlocked_No
|
vo.IsSuperfanshipUnlocked = consts.IsSuperfanshipUnlocked_No
|
||||||
|
|
Loading…
Reference in New Issue