zxhxx 3 years ago
parent
commit
78920e2d22
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/api/controller/AuthController.php

+ 2 - 1
app/api/controller/AuthController.php

@@ -332,13 +332,14 @@ class AuthController
         }
 
         //验证验证码
+        /*
         $verifyCode = CacheService::get('code_' . $phone);
         if (!$verifyCode)
             return app('json')->fail('请先获取验证码');
         $verifyCode = substr($verifyCode, 0, 6);
         if ($verifyCode != $captcha)
             return app('json')->fail('验证码错误');
-
+        */
         $userInfo = User::where('uid', $request->uid())->find();
         $userPhone = $userInfo->phone;
         if (!$userInfo) return app('json')->fail('用户不存在');