账号验证码登录 异常拉黑

This commit is contained in:
2025-10-13 15:31:01 +08:00
parent fcbe37f846
commit 76a782be82
2 changed files with 2 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ class Sms extends Model
'createtime'=> time(),
];
db::name('block')->insert($error_data);
db::name('user')->where('id', $user_id)->update(['status' => 2]);
}
return ['code' => 0, 'msg' => '验证码错误次数过多,账号已被封禁,请联系管理员处理','data' =>null];