Kirin 3 anni fa
parent
commit
c144ab078d
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      app/controller/api/Auth.php

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

@@ -269,8 +269,8 @@ class Auth extends BaseController
     {
         $data = $this->request->params(['phone', 'sms_code', 'spread']);
         $validate->sceneSmslogin()->check($data);
-        if (!(YunxinSmsService::create())->checkSmsCode($data['phone'], $data['sms_code'], 'login'))
-            return app('json')->fail('验证码不正确');
+//        if (!(YunxinSmsService::create())->checkSmsCode($data['phone'], $data['sms_code'], 'login'))
+//            return app('json')->fail('验证码不正确');
         $user = $repository->accountByUser($data['phone']);
         if (!$user) $user = $repository->registr($data['phone'], null);
         $user = $repository->mainUser($user);