代码优化

Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
vilson 2019-02-14 10:59:34 +08:00
parent 4290688db0
commit bec96d2905
2 changed files with 2 additions and 1 deletions

View File

@ -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>

View File

@ -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));