mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 优化日志内容
This commit is contained in:
parent
68bd16eefb
commit
d6328309e4
@ -17,10 +17,11 @@ class ApiLog {
|
||||
$requestInfo = $request->param();
|
||||
unset($requestInfo['API_CONF_DETAIL']);
|
||||
unset($requestInfo['APP_CONF_DETAIL']);
|
||||
|
||||
ApiLogTool::setApiInfo($request->API_CONF_DETAIL);
|
||||
ApiLogTool::setAppInfo($request->APP_CONF_DETAIL);
|
||||
ApiLogTool::setRequest($requestInfo);
|
||||
ApiLogTool::setResponse($response->getData(), $response->getData()['code']);
|
||||
ApiLogTool::setResponse($response->getData(), isset($response->getData()['code']) ? $response->getData()['code'] : 'null');
|
||||
ApiLogTool::setHeader($request->header());
|
||||
ApiLogTool::save();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user