diff --git a/webapp/models/User.php b/webapp/models/User.php index 856f6309..fc8dfe1d 100644 --- a/webapp/models/User.php +++ b/webapp/models/User.php @@ -220,7 +220,8 @@ class User extends BaseModel { 'current_star_num' => $current_star_num, 'next_star_num' => $next_star_num, // 'status_bar' => self::_getState(), - 'honor_info' => $honorInfo + 'honor_info' => $honorInfo, + 'last_login_time' => $row['last_login_time'], ); } diff --git a/webapp/services/TameBattleDataService.php b/webapp/services/TameBattleDataService.php index 894bf6ea..ec61296c 100644 --- a/webapp/services/TameBattleDataService.php +++ b/webapp/services/TameBattleDataService.php @@ -866,8 +866,8 @@ class TameBattleDataService extends BaseService { 'rank' => $newRank, 'score' => $newScore, 'elo' => $newElo, - 'history_best_rank' => max($this->userInfo['rank'], $newRank), - 'history_best_score' => max($this->userInfo['score'], $newScore), + 'history_best_rank' => max($this->userInfo['history_best_rank'], $newRank), + 'history_best_score' => max($this->userInfo['history_best_score'], $newScore), 'score_modifytime' => myself()->_getNowTime(), 'best_rank_modifytime' => $newRank > $this->userInfo['rank'] ? myself()->_getNowTime() : $this->userInfo['best_rank_modifytime'],