rabin hai 21 horas
pai
achega
43fa02b55a
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      app/Lib/Platform.php

+ 5 - 1
app/Lib/Platform.php

@@ -114,7 +114,11 @@ class Platform
         $log['method'] = $method;
         $log['body'] = $body;
         $log['header'] = $header;
-        $log['response_body'] = $response_body;
+        if ($response_config['type'] == 4) {
+            $log['response_body'] = 'buffer';
+        } else {
+            $log['response_body'] = $response_body;
+        }
         $log['response_header'] = $response_header;
         $log['data'] = $result;
         Dever::db('api/api_log')->update($log['request_id'], $log);