正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -23,7 +23,7 @@ class LoginAuthMiddleware | @@ -23,7 +23,7 @@ class LoginAuthMiddleware | ||
| 23 | */ | 23 | */ |
| 24 | public function handle(Request $request, Closure $next) | 24 | public function handle(Request $request, Closure $next) |
| 25 | { | 25 | { |
| 26 | - $manage = Cache::get(Common::MANAGE_TOKEN . $request->header('token')); | 26 | + $manage = LoginLogic::manage(); |
| 27 | if (!$manage) { | 27 | if (!$manage) { |
| 28 | return response(['code'=> Code::USER_LOGIN_ERROE,'message'=>'当前用户未登录']); | 28 | return response(['code'=> Code::USER_LOGIN_ERROE,'message'=>'当前用户未登录']); |
| 29 | } | 29 | } |
-
请 注册 或 登录 后发表评论