This commit is contained in:
aozhiwei 2024-08-30 14:32:53 +08:00
parent f268de1f1f
commit f6a100b833

View File

@ -864,6 +864,7 @@ class BattleController extends BaseAuthedController {
return;
}
$realPlayerNum = 0;
$currSeason = mt\RankSeason::getCurrentSeason();
foreach ($customData['team_list'] as $team) {
if ($ignoreAndroid) {
@ -899,6 +900,7 @@ class BattleController extends BaseAuthedController {
$info = $this->genInitBattleData();
$userDb = User::find($accountId);
if ($userDb) {
++$realPlayerNum;
$userPresetInfo = User::toPreset($userDb);
$info['elo'] = $userDb['elo'];
$info['rank'] = $userDb['rank'];
@ -950,6 +952,9 @@ class BattleController extends BaseAuthedController {
array_push($data['team_list'], $teamInfo);
}
$this->decTicket($r, $customData, $mapModeMeta);
if ($data['is_newbie_battle'] && $realPlayerNum > 0) {
$data['is_newbie_battle'] = 0;
}
myself()->_rspData($data);
}