增加响应日志

pull/1/head
jcadmin 2025-02-07 21:59:33 +08:00
parent d39653a4c2
commit 6b4644870c
1 changed files with 4 additions and 1 deletions

View File

@ -37,7 +37,10 @@ class LogMiddleware
$durTime = microtime(true) - $startTime;
Log::info($uri . '~~~end', [
'time' => Helps::floatFormat($durTime, 3)
'time' => Helps::floatFormat($durTime, 3),
'responseData' => $response->getContent(),
'customer_id' => $customer ? $customer->id : 0,
'seller_id' => $seller ? $seller->id : 0,
]);
return $response;
}