This commit is contained in:
hujiabin 2022-10-31 20:28:49 +08:00
parent ffe9a445da
commit 40616e8e7d

View File

@ -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']);