|
@@ -63,7 +63,13 @@ class Base
|
|
if (!$this->config['url']) {
|
|
if (!$this->config['url']) {
|
|
$result = 'url error';
|
|
$result = 'url error';
|
|
} else {
|
|
} else {
|
|
- $result = Dever::curl($this->config['url'], $param, $this->config['method'], $this->config['json'], $this->config['header']);
|
|
|
|
|
|
+ $json = false;
|
|
|
|
+ if ($this->config['json'] == 1) {
|
|
|
|
+ $json = true;
|
|
|
|
+ } else {
|
|
|
|
+ $json = false;
|
|
|
|
+ }
|
|
|
|
+ $result = Dever::curl($this->config['url'], $param, $this->config['method'], $json, $this->config['header']);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|