|
|
@@ -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('用户不存在');
|