Commit 157aef62 by 杜文军

更新

parent abddfb79
Showing with 1 additions and 1 deletions
...@@ -36,7 +36,7 @@ class LoginModel extends Model ...@@ -36,7 +36,7 @@ class LoginModel extends Model
} }
$userInfoKey = $Redis->keys('frq_login_'.$token."*"); $userInfoKey = $Redis->keys('frq_login_'.$token."*");
$userInfo = count($userInfoKey) ? $Redis->get($userInfoKey[0]) : ""; $userInfo = count($userInfoKey) ? $Redis->get($userInfoKey[0]) : "";
if (empty($userInfo) || count($userInfo) == 0){ if (empty($userInfo)){
Export(1001,"请先登录"); Export(1001,"请先登录");
} }
$userInfo = \GuzzleHttp\json_decode($userInfo,true); $userInfo = \GuzzleHttp\json_decode($userInfo,true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment