|
@@ -105,11 +105,11 @@ class Api
|
|
|
try {
|
|
|
$token = app()->request->header('Authorization');
|
|
|
if ( ! $token) {
|
|
|
- $this->error('请先登录', '', 0);
|
|
|
+ $this->error('请先登录1', '', 0);
|
|
|
}
|
|
|
$user = JWT::decode($token, config('jwt.key'), ['HS256']);
|
|
|
if ( ! $user) {
|
|
|
- $this->error('请先登录', '', 0);
|
|
|
+ $this->error('请先登录2', '', 0);
|
|
|
}
|
|
|
$userinfo = User::where('id', $user->id)->find();
|
|
|
if (1 != $userinfo['status']) {
|
|
@@ -118,7 +118,7 @@ class Api
|
|
|
|
|
|
return $user->id;
|
|
|
} catch (\UnexpectedValueException $e) {
|
|
|
- $this->error('请先登录', '', 0);
|
|
|
+ $this->error('请先登录3', '', 0);
|
|
|
}
|
|
|
}
|
|
|
|