比赛场每日库存BUG修改

This commit is contained in:
by 2024-07-05 15:43:12 +08:00
parent bc4c7c11aa
commit fb3d73f61f
1 changed files with 6 additions and 4 deletions

View File

@ -240,11 +240,13 @@ func (this *Tournament) UpdateData(init bool, data *webapiproto.GameMatchDateLis
}
this.GameMatchDateList[data.Platform] = configs
//拉取数据
if this.MatchAwardNum == nil {
ret, err := model.GetMatchAwardLog(data.Platform)
logger.Logger.Tracef("ret = %v,err = %v", ret, err)
if err == nil {
this.MatchAwardNum = ret.AwardNum
}
}
// 通知平台玩家数据更新
if !init {
//todo 优化