浏览代码

接口日志

lizhen_gitee 1 年之前
父节点
当前提交
44a8ee0fc6
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      application/common/controller/Api.php

+ 4 - 0
application/common/controller/Api.php

@@ -238,6 +238,10 @@ class Api
             'time' => Request::instance()->server('REQUEST_TIME'),
             'data' => $data,
         ];
+
+        //日志
+        $this->request_log_update($result);
+
         // 如果未设置类型则自动判断
         $type = $type ? $type : ($this->request->param(config('var_jsonp_handler')) ? 'jsonp' : $this->responseType);