|
@@ -204,11 +204,15 @@ class Curl
|
|
|
$data = count($data) . ' records';
|
|
|
}
|
|
|
$debug['url'] = $this->url;
|
|
|
- $debug['param'] = $this->param;
|
|
|
+ $debug['body'] = $this->param;
|
|
|
+ $debug['header'] = $this->header;
|
|
|
$debug['result'] = $data;
|
|
|
if ($this->log) {
|
|
|
Dever::log($debug, 'curl');
|
|
|
}
|
|
|
+ if (Dever::input('test') == 1) {
|
|
|
+ echo Dever::json_encode($debug);die;
|
|
|
+ }
|
|
|
Dever::debug($debug, 'curl');
|
|
|
if (isset($setting['stream'])) {
|
|
|
exit;
|