wugg 5 달 전
부모
커밋
8bdf2b03ab
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      app/middleware/HttpLog.php

+ 5 - 0
app/middleware/HttpLog.php

@@ -28,4 +28,9 @@ class HttpLog
         Log::info(json_encode($data,JSON_UNESCAPED_UNICODE));
         return $next($request);
     }
+
+    public function end(\think\Response $response)
+    {
+        Log::info('响应结束:'.json_encode($response->getData(),JSON_UNESCAPED_UNICODE));
+    }
 }