This commit is contained in:
hujiabin 2023-09-13 18:50:18 +08:00
parent 92f096f490
commit 7fbd7707ef
2 changed files with 4 additions and 3 deletions

View File

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

View File

@ -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'],