From 4fe9faa1bb2abde6c33cf428544b5e3760f032c0 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Tue, 16 Apr 2024 18:59:32 +0800 Subject: [PATCH] by Robin at 20240416 --- app/mix/service/utilservice.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/mix/service/utilservice.go b/app/mix/service/utilservice.go index b66e5699..c8a766cb 100644 --- a/app/mix/service/utilservice.go +++ b/app/mix/service/utilservice.go @@ -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