wupengfei 3 years ago
parent
commit
7c3aef376d
1 changed files with 1 additions and 1 deletions
  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, http_build_query($arr));
+        curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($arr));
         curl_setopt($ch, CURLOPT_HEADER, 0);
     }
     //3.采集