diff --git a/app/api/service/passport/Login.php b/app/api/service/passport/Login.php index fff6fb61..49e7f983 100644 --- a/app/api/service/passport/Login.php +++ b/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() ?: '短信验证码不正确'); + } } /**