Skip to content

Commit 461b053

Browse files
Zhao-githubgitee-org
authored andcommitted
!24 传参类型问题
Merge pull request !24 from Ufec/ufec
2 parents d58f450 + 1fbc042 commit 461b053

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/middleware/ApiLog.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ public function handle($request, \Closure $next) {
1919
unset($requestInfo['API_CONF_DETAIL']);
2020
unset($requestInfo['APP_CONF_DETAIL']);
2121

22-
ApiLogTool::setApiInfo($request->API_CONF_DETAIL);
23-
ApiLogTool::setAppInfo($request->APP_CONF_DETAIL);
22+
ApiLogTool::setApiInfo((array)$request->API_CONF_DETAIL);
23+
ApiLogTool::setAppInfo((array)$request->APP_CONF_DETAIL);
2424
ApiLogTool::setRequest($requestInfo);
2525
ApiLogTool::setResponse($response->getData(), isset($response->getData()['code']) ? strval($response->getData()['code']) : 'null');
26-
ApiLogTool::setHeader($request->header());
26+
ApiLogTool::setHeader((array)$request->header());
2727
ApiLogTool::save();
2828

2929
return $response;

0 commit comments

Comments
 (0)