1
This commit is contained in:
parent
f268de1f1f
commit
f6a100b833
@ -864,6 +864,7 @@ class BattleController extends BaseAuthedController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$realPlayerNum = 0;
|
||||||
$currSeason = mt\RankSeason::getCurrentSeason();
|
$currSeason = mt\RankSeason::getCurrentSeason();
|
||||||
foreach ($customData['team_list'] as $team) {
|
foreach ($customData['team_list'] as $team) {
|
||||||
if ($ignoreAndroid) {
|
if ($ignoreAndroid) {
|
||||||
@ -899,6 +900,7 @@ class BattleController extends BaseAuthedController {
|
|||||||
$info = $this->genInitBattleData();
|
$info = $this->genInitBattleData();
|
||||||
$userDb = User::find($accountId);
|
$userDb = User::find($accountId);
|
||||||
if ($userDb) {
|
if ($userDb) {
|
||||||
|
++$realPlayerNum;
|
||||||
$userPresetInfo = User::toPreset($userDb);
|
$userPresetInfo = User::toPreset($userDb);
|
||||||
$info['elo'] = $userDb['elo'];
|
$info['elo'] = $userDb['elo'];
|
||||||
$info['rank'] = $userDb['rank'];
|
$info['rank'] = $userDb['rank'];
|
||||||
@ -950,6 +952,9 @@ class BattleController extends BaseAuthedController {
|
|||||||
array_push($data['team_list'], $teamInfo);
|
array_push($data['team_list'], $teamInfo);
|
||||||
}
|
}
|
||||||
$this->decTicket($r, $customData, $mapModeMeta);
|
$this->decTicket($r, $customData, $mapModeMeta);
|
||||||
|
if ($data['is_newbie_battle'] && $realPlayerNum > 0) {
|
||||||
|
$data['is_newbie_battle'] = 0;
|
||||||
|
}
|
||||||
myself()->_rspData($data);
|
myself()->_rspData($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user