quguofeng 1 年之前
父节点
当前提交
656ad75e61
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/controller/api/Auth.php

+ 1 - 1
app/controller/api/Auth.php

@@ -356,7 +356,7 @@ class Auth extends BaseController
         $data = $this->request->params(['phone', 'sms_code', 'spread', 'auth_token',['user_type','h5']]);
         $validate->sceneSmslogin()->check($data);
         $sms_code = app()->make(SmsService::class)->checkSmsCode($data['phone'], $data['sms_code'], 'login');
-        //if (!$sms_code) return app('json')->fail('验证码不正确');
+        if (!$sms_code) return app('json')->fail('验证码不正确');
         $user = $repository->accountByUser($data['phone']);
         $auth = $this->parseAuthToken($data['auth_token']);
         if (!$user) $user = $repository->registr($data['phone'], null, $data['user_type']);