|
@@ -32,9 +32,9 @@ class ExceptionHandle extends Handle
|
|
|
$result = ['code' => $code, 'msg' => $msg, 'time' => time(), 'data' => null];
|
|
|
|
|
|
//记录app异常返回结果
|
|
|
- if(defined('API_REQUEST_ID')) { //记录app正常返回结果
|
|
|
- db('api_request_log')->where('id',API_REQUEST_ID)->update(['result'=>json_encode($result)]);
|
|
|
- }
|
|
|
+// if(defined('API_REQUEST_ID')) { //记录app正常返回结果
|
|
|
+// db('api_request_log')->where('id',API_REQUEST_ID)->update(['result'=>json_encode($result)]);
|
|
|
+// }
|
|
|
|
|
|
return json($result, $statuscode);
|
|
|
}
|