锦标赛bug修复

This commit is contained in:
hahwu 2026-04-13 16:14:26 +08:00
parent 2bf8a710a4
commit a074fce5bd
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)