zxhxx 3 anos atrás
pai
commit
abdb42ef87
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      extend/liuniu/HttpService.php

+ 2 - 2
extend/liuniu/HttpService.php

@@ -124,9 +124,9 @@ class HttpService
      * @param int $timeout 超时秒数
      * @return bool|string
      */
-    public static function postRequest($url, array $data = array(), $header = false, $timeout = 10,$type="array")
+    public static function postRequest($url, array $data = array(), $header = false, $timeout = 10,$json=false)
     {
-        return self::request($url, 'post', $data, $header, $timeout,$type);
+        return self::request($url, 'post', $data, $header, $timeout,$json);
     }
 
     /**