代码优化
Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
parent
4290688db0
commit
bec96d2905
@ -5,4 +5,5 @@
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
|
||||
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
|
||||
</IfModule>
|
||||
|
@ -45,7 +45,7 @@ class Auth
|
||||
$msg = ['code' => 401, 'msg' => 'accessToken过期'];
|
||||
return json($msg);
|
||||
}
|
||||
$msg = ['code' => 402, 'msg' => 'token过期,请重新登录'];
|
||||
$msg = ['code' => 401, 'msg' => 'token过期,请重新登录'];
|
||||
return json($msg);
|
||||
}
|
||||
setCurrentMember(get_object_vars($data->data));
|
||||
|
Loading…
x
Reference in New Issue
Block a user