优化性能

This commit is contained in:
2026-03-05 17:20:44 +08:00
parent effdaaa38b
commit 005f261e03
12 changed files with 99 additions and 28 deletions

View File

@@ -84,6 +84,7 @@ class UserLogic
$userArr = $player->hidden(['password'])->toArray();
UserCache::setUser((int) $player->id, $userArr);
UserCache::setPlayerByUsername($username, $userArr);
$baseUrl = rtrim(config('api.login_url_base', 'https://127.0.0.1:6777'), '/');
$lang = in_array($lang, ['chs', 'en'], true) ? $lang : 'chs';