|
@@ -213,7 +213,7 @@ function http_curl($url,$type='get',$arr=''){
|
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
|
|
if($type == 'post'){
|
|
|
curl_setopt($ch, CURLOPT_POST,1);
|
|
|
- curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($arr));
|
|
|
+ curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($arr));
|
|
|
curl_setopt($ch, CURLOPT_HEADER, 0);
|
|
|
}
|
|
|
//3.采集
|