优化玩家DicePlayer保存的lottery_config_id

This commit is contained in:
2026-03-07 11:58:47 +08:00
parent 282d73a203
commit 316506b597
2 changed files with 13 additions and 0 deletions

View File

@@ -55,6 +55,9 @@ class UserLogic
$player = DicePlayer::where('username', $username)->find();
if ($player) {
if ((int) ($player->status ?? 1) === 0) {
throw new ApiException('账号已被禁用,无法登录');
}
$hashed = $this->hashPassword($password);
if ($player->password !== $hashed) {
throw new ApiException('密码错误');