|
@@ -339,13 +339,13 @@ class LoginController
|
|
|
}
|
|
|
|
|
|
//验证验证码
|
|
|
-// $verifyCode = CacheService::get('code_' . $phone);
|
|
|
-// if (!$verifyCode)
|
|
|
-// return app('json')->fail('请先获取验证码');
|
|
|
-// $verifyCode = substr($verifyCode, 0, 6);
|
|
|
-// if ($verifyCode != $captcha) {
|
|
|
-// return app('json')->fail('验证码错误');
|
|
|
-// }
|
|
|
+ $verifyCode = CacheService::get('code_' . $phone);
|
|
|
+ if (!$verifyCode)
|
|
|
+ return app('json')->fail('请先获取验证码');
|
|
|
+ $verifyCode = substr($verifyCode, 0, 6);
|
|
|
+ if ($verifyCode != $captcha) {
|
|
|
+ return app('json')->fail('验证码错误');
|
|
|
+ }
|
|
|
$user_type = $request->getFromType() ? $request->getFromType() : 'h5';
|
|
|
$token = $this->services->mobile($phone, $spread_spid, $user_type);
|
|
|
if ($token) {
|