lqmac 10 months ago
parent 6d85349ad5
commit 8ec4a30eea
  1. 10
      app/api/service/passport/Login.php

@ -443,11 +443,11 @@ class Login extends BaseService
throwError($validate->getError());
}
// 验证短信验证码是否匹配
// try {
// CaptchaApi::checkSms($data['smsCode'], $data['mobile']);
// } catch (\Exception $e) {
// throwError($e->getMessage() ?: '短信验证码不正确');
// }
try {
CaptchaApi::checkSms($data['smsCode'], $data['mobile']);
} catch (\Exception $e) {
throwError($e->getMessage() ?: '短信验证码不正确');
}
}
/**

Loading…
Cancel
Save