dever 6 år sedan
förälder
incheckning
84988664a0
1 ändrade filer med 7 tillägg och 1 borttagningar
  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']);
             }
         }