dever %!s(int64=6) %!d(string=hai) anos
pai
achega
84988664a0
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  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']);
             }
         }