锦标赛bug修复
This commit is contained in:
parent
2bf8a710a4
commit
a074fce5bd
@ -312,7 +312,7 @@ func (p *Player) BackChampship() {
|
||||
todayActivityId, yesterdayActivityId := p.GetChampshipActivityId()
|
||||
res := ChampshipMod.BackData(rank, preRank, todayActivityId, yesterdayActivityId)
|
||||
cfg := G_GameLogicPtr.ActivityMgr.GetChampshipCfg(todayActivityId)
|
||||
if GoUtil.Now()-GoUtil.ZeroTimestamp() >= int64(cfg.ClearTime) {
|
||||
if cfg != nil && GoUtil.Now()-GoUtil.ZeroTimestamp() >= int64(cfg.ClearTime) {
|
||||
res.Status = 1
|
||||
}
|
||||
res.Cfg = cfg
|
||||
|
||||
@ -379,7 +379,7 @@ func ReqRewardOrder(player *Player, req *msg.ReqRewardOrder) error {
|
||||
if player.GetPlayerBaseMod().GetLevel() >= 17 {
|
||||
todayActivityId, _ := player.GetChampshipActivityId()
|
||||
cfg := G_GameLogicPtr.ActivityMgr.GetChampshipCfg(todayActivityId)
|
||||
if GoUtil.Now()-GoUtil.ZeroTimestamp() >= int64(cfg.ClearTime) {
|
||||
if cfg != nil && GoUtil.Now()-GoUtil.ZeroTimestamp() >= int64(cfg.ClearTime) {
|
||||
chessList := make([]int, 0)
|
||||
for _, v := range mergeList {
|
||||
color := mergeDataCfg.GetColorById(v)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user