比赛场每日库存BUG修改
This commit is contained in:
parent
bc4c7c11aa
commit
fb3d73f61f
|
|
@ -240,10 +240,12 @@ func (this *Tournament) UpdateData(init bool, data *webapiproto.GameMatchDateLis
|
|||
}
|
||||
this.GameMatchDateList[data.Platform] = configs
|
||||
//拉取数据
|
||||
ret, err := model.GetMatchAwardLog(data.Platform)
|
||||
logger.Logger.Tracef("ret = %v,err = %v", ret, err)
|
||||
if err == nil {
|
||||
this.MatchAwardNum = ret.AwardNum
|
||||
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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue