By Robin at 20240416
This commit is contained in:
parent
4fe9faa1bb
commit
7b24d98dd5
|
@ -1559,14 +1559,15 @@ func (s *Service) utilFillZonesWithApiVOInfo(ctx *gin.Context, list []*dbstruct.
|
|||
vo.Expenditure = zidZuMap[zid].GetConsume()
|
||||
|
||||
// 填充铁粉解锁信息
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue