WIN-2308041133\Administrator 5 tháng trước cách đây
mục cha
commit
eccf7ec98e
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/controller/api/Auth.php

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

@@ -426,8 +426,8 @@ class Auth extends BaseController
         $data = $this->request->params(['phone', 'sms_code', 'spread', 'pwd', 'auth_token', ['user_type', 'h5']]);
         $data = $this->request->params(['phone', 'sms_code', 'spread', 'pwd', 'auth_token', ['user_type', 'h5']]);
         $validate->check($data);
         $validate->check($data);
         $sms_code = app()->make(SmsService::class)->checkSmsCode($data['phone'], $data['sms_code'], 'login');
         $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']);
         $user = $repository->accountByUser($data['phone']);
         if ($user) return app('json')->fail('用户已存在');
         if ($user) return app('json')->fail('用户已存在');
         $auth = $this->parseAuthToken($data['auth_token']);
         $auth = $this->parseAuthToken($data['auth_token']);