From 9cea78625f8f0344243a230c1b8a3884da6b0242 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Tue, 6 Feb 2024 20:07:15 +0800 Subject: [PATCH] update --- modules/pagoda/api_challengeover.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/pagoda/api_challengeover.go b/modules/pagoda/api_challengeover.go index b95b8ca35..8c0103b6a 100644 --- a/modules/pagoda/api_challengeover.go +++ b/modules/pagoda/api_challengeover.go @@ -118,6 +118,9 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.PagodaChal // 校验是否刷新记录 record := this.module.modulerank.getcrossPagodaRankList(session.GetUserId()) this.module.modulerank.SetPagodaRankList(conf.Key, score, session.GetUserId()) + if record.Data == nil { + record.Data = make(map[int32]*pb.PagodaRecordData) + } if _, ok := record.Data[conf.Key]; !ok { record.Data[conf.Key] = &pb.PagodaRecordData{ Consttime: costTime,