正在显示
1 个修改的文件
包含
0 行增加
和
1 行删除
| @@ -23,7 +23,6 @@ class LoginAuthMiddleware | @@ -23,7 +23,6 @@ class LoginAuthMiddleware | ||
| 23 | public function handle(Request $request, Closure $next) | 23 | public function handle(Request $request, Closure $next) |
| 24 | { | 24 | { |
| 25 | $token = $request->header('token'); | 25 | $token = $request->header('token'); |
| 26 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($token, true) . PHP_EOL, FILE_APPEND); | ||
| 27 | $info = Cache::get($token); | 26 | $info = Cache::get($token); |
| 28 | if(empty($info) || empty($token)){ | 27 | if(empty($info) || empty($token)){ |
| 29 | return response(['code'=>Code::USER_LOGIN_ERROE,'msg'=>'当前用户未登录']); | 28 | return response(['code'=>Code::USER_LOGIN_ERROE,'msg'=>'当前用户未登录']); |
-
请 注册 或 登录 后发表评论