浏览代码

版本大修改

cqp 2 月之前
父节点
当前提交
d550a6ddd6
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      app/Http/Middleware/RequestLog.php

+ 3 - 1
app/Http/Middleware/RequestLog.php

@@ -31,7 +31,9 @@ class RequestLog
             $ip = '0.0.0.0';
         }
         $params = $request->all();
-        Log::channel('request')->info('request', ['param'=>$params,'ip' => $ip,'uri'=>$request->path()]);
+        if($request->path() != 'api/reportRemainList'){
+            Log::channel('request')->info('request', ['param'=>$params,'ip' => $ip,'uri'=>$request->path()]);
+        }
 
         return $next($request);
     }