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