From 40616e8e7d964f095784c64d76687bc57258e9f4 Mon Sep 17 00:00:00 2001 From: hujiabin Date: Mon, 31 Oct 2022 20:28:49 +0800 Subject: [PATCH] 1 --- webapp/services/BattleDataService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/services/BattleDataService.php b/webapp/services/BattleDataService.php index 020362fb..1cb8f95f 100644 --- a/webapp/services/BattleDataService.php +++ b/webapp/services/BattleDataService.php @@ -192,7 +192,7 @@ class BattleDataService extends BaseService { $newRank = $user['rank']; $newScore = $user['score']; $match_mode = getReqVal('match_mode', 0); - if (mt\RankSeason::getCurrentSeason() && !$match_mode){ + if (mt\RankSeason::getCurrentSeason() && !$match_mode && myself()->_getV(TN_RANK_STATUS, 0 ) != 1){ $newScore = FormulaService::calcBattleAfterRankScore($user,$_REQUEST); //赛后排位积分 mt\Rank::calcNewRankAndScore( $newRank, $newScore); $match_mode = 1; @@ -570,7 +570,7 @@ class BattleDataService extends BaseService { error_log('updateBattleData3'); $this->currSeasonMeta = mt\RankSeason::getCurrentSeason(); - if ( $this->currSeasonMeta ) { + if ( $this->currSeasonMeta && myself()->_getV(TN_RANK_STATUS, 0 ) != 1) { $this->seasonDb = Season::find($this->currSeasonMeta['id']); if (!$this->seasonDb) { Season::add($this->currSeasonMeta['id']);