dever 6 年之前
父节点
当前提交
84988664a0
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      lib/Base.php

+ 7 - 1
lib/Base.php

@@ -63,7 +63,13 @@ class Base
             if (!$this->config['url']) {
                 $result = 'url error';
             } 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']);
             }
         }