手机验证码注册

This commit is contained in:
chenbo 2024-01-02 18:20:41 +08:00
parent 8c6838fbf2
commit 27b695a965
1 changed files with 2 additions and 2 deletions

View File

@ -55,8 +55,8 @@ class LoginLogic extends BaseLogic
$password = create_password($params['password'], $passwordSalt); $password = create_password($params['password'], $passwordSalt);
$avatar = ConfigService::get('default_image', 'user_avatar'); $avatar = ConfigService::get('default_image', 'user_avatar');
// 校验短信验证码 // 校验短信验证码
$verifyCode = $params['verify_code']; $verifyCode = intval($params['verify_code']);
$params['account'] = intval($params['mobile']); $params['account'] = $params['mobile'];
if((new LoginAccountValidate())->checkCode($verifyCode, [], $params) === true) { if((new LoginAccountValidate())->checkCode($verifyCode, [], $params) === true) {
self::setError('验证码错误'); self::setError('验证码错误');
return false; return false;