锦标赛清理期
This commit is contained in:
parent
a203d5e485
commit
4a1c14dbbf
@ -315,7 +315,11 @@ func (p *Player) BackChampship() {
|
||||
res := ChampshipMod.BackData(rank, preRank, todayActivityId, yesterdayActivityId)
|
||||
cfg := G_GameLogicPtr.ActivityMgr.GetChampshipCfg(todayActivityId)
|
||||
res.EndTime = int32(GoUtil.ZeroTimestamp() + 86400)
|
||||
if cfg != nil && GoUtil.Now()-GoUtil.ZeroTimestamp() >= int64(cfg.ClearTime) {
|
||||
if activityInfo != nil {
|
||||
res.StartTime = int32(activityInfo.StartT)
|
||||
res.EndTime = int32(activityInfo.EndT)
|
||||
}
|
||||
if cfg != nil && GoUtil.Now()-int64(res.StartTime) >= int64(cfg.ClearTime) {
|
||||
res.Status = 1
|
||||
} else {
|
||||
cfg = G_GameLogicPtr.ActivityMgr.GetChampshipCfg(yesterdayActivityId)
|
||||
@ -323,10 +327,7 @@ func (p *Player) BackChampship() {
|
||||
if cfg != nil {
|
||||
res.Title = cfg.Title
|
||||
}
|
||||
if activityInfo != nil {
|
||||
res.StartTime = int32(activityInfo.StartT)
|
||||
res.EndTime = int32(activityInfo.EndT)
|
||||
}
|
||||
|
||||
res.Cfg = cfg
|
||||
p.PushClientRes(res)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user