登录错误 优化

This commit is contained in:
2025-10-14 09:13:15 +08:00
parent 9c957165ff
commit b42d87294d
2 changed files with 19 additions and 12 deletions

View File

@@ -56,6 +56,8 @@ class Sms extends Model
}
}
db::name('sms')->where(['mobile' => $mobile, 'event' => $type])->delete();
//登陆成功后 把所有的登录错误删除掉
db::name('sms_error')->where(['mobile' => $mobile])->delete();
return ['code' =>1, 'msg' =>'验证码正确','data' =>null];
} else {
//验证码错误次数