| xqd
@@ -168,7 +168,7 @@ class AuthController extends Controller
|
|
|
return $this->validatorError($validator->messages()->all(),ErrorCode::CLIENT_WRONG_PARAMS);
|
|
|
$user = UserInfoModel::where('wechat',$request->wechat)->first();
|
|
|
if (empty($user)) {
|
|
|
- return $this->error(ErrorCode::LOGIN_FAILED);
|
|
|
+// return $this->error(ErrorCode::LOGIN_FAILED);
|
|
|
}else{
|
|
|
$token = $user->createToken($user->phone)->accessToken;
|
|
|
return $this->api(compact( 'user', 'code','token'));
|