From 1fbc042e19b1e8ae76fb52a8975cc08bee66ef1b Mon Sep 17 00:00:00 2001 From: ufec Date: Wed, 27 Jan 2021 10:56:07 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=E4=BC=A0=E5=8F=82=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/middleware/ApiLog.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/middleware/ApiLog.php b/app/middleware/ApiLog.php index 3b449ec..cce0a6a 100644 --- a/app/middleware/ApiLog.php +++ b/app/middleware/ApiLog.php @@ -19,11 +19,11 @@ class ApiLog { unset($requestInfo['API_CONF_DETAIL']); unset($requestInfo['APP_CONF_DETAIL']); - ApiLogTool::setApiInfo($request->API_CONF_DETAIL); - ApiLogTool::setAppInfo($request->APP_CONF_DETAIL); + ApiLogTool::setApiInfo((array)$request->API_CONF_DETAIL); + ApiLogTool::setAppInfo((array)$request->APP_CONF_DETAIL); ApiLogTool::setRequest($requestInfo); ApiLogTool::setResponse($response->getData(), isset($response->getData()['code']) ? strval($response->getData()['code']) : 'null'); - ApiLogTool::setHeader($request->header()); + ApiLogTool::setHeader((array)$request->header()); ApiLogTool::save(); return $response;