|
@@ -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);
|
|
|
}
|
|
|
|
|
|
/**
|