1
This commit is contained in:
parent
86ad0a3a0d
commit
e8e38e4aec
@ -142,7 +142,8 @@ class UserController extends BaseAuthedController {
|
|||||||
'head_frame' => $headFrame,
|
'head_frame' => $headFrame,
|
||||||
'level' => 1,
|
'level' => 1,
|
||||||
'exp' => 0,
|
'exp' => 0,
|
||||||
'rank' => $initRankMeta ? $initRankMeta['rank'] : 0,
|
'rank' => $initRankMeta ? $initRankMeta['rank'] : 1,
|
||||||
|
'history_best_rank' => $initRankMeta ? $initRankMeta['rank'] : 1,
|
||||||
'score' => $initRankMeta ? $initRankMeta['min_score'] : 0,
|
'score' => $initRankMeta ? $initRankMeta['min_score'] : 0,
|
||||||
'head_id' => $headId,
|
'head_id' => $headId,
|
||||||
'hero_id' => $heroId,
|
'hero_id' => $heroId,
|
||||||
@ -378,6 +379,26 @@ class UserController extends BaseAuthedController {
|
|||||||
'star_win' => min(100, $starWin),
|
'star_win' => min(100, $starWin),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
if (count($userDto['history_seasons']) <= 0) {
|
||||||
|
$currSeasonMeta = mt\Season::getCurrentSeason();
|
||||||
|
array_push($userDto['history_seasons'],
|
||||||
|
array(
|
||||||
|
'season_id' => $currSeasonMeta['id'],
|
||||||
|
'total_kills' => 0,
|
||||||
|
'game_times' => 0,
|
||||||
|
'win_times' => 0,
|
||||||
|
'win_rate' => 0,
|
||||||
|
'max_kills' => 0,
|
||||||
|
'avg_kills' => 0,
|
||||||
|
'max_damage_out' => 0,
|
||||||
|
'avg_damage_out' => 0,
|
||||||
|
'star_kills' => min(100, 0),
|
||||||
|
'star_damage' => min(100, 0),
|
||||||
|
'star_alive' => min(100, 0),
|
||||||
|
'star_recover' => min(100, 0),
|
||||||
|
'star_win' => min(100, 0),
|
||||||
|
));
|
||||||
|
}
|
||||||
$this->_rspData(array(
|
$this->_rspData(array(
|
||||||
'info' => $userDto
|
'info' => $userDto
|
||||||
));
|
));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user