wupengfei 3 yıl önce
ebeveyn
işleme
d56ed37ca9
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      application/common.php

+ 1 - 1
application/common.php

@@ -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, $arr);
+        curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($arr));
         curl_setopt($ch, CURLOPT_HEADER, 0);
     }
     //3.采集