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