diff --git a/app/common.php b/app/common.php index d70e48e0..55477d46 100644 --- a/app/common.php +++ b/app/common.php @@ -337,7 +337,7 @@ function curl_post($url,$data,$headers=[]) { //设置为post方式请求 curl_setopt($ch, CURLOPT_POST, 1); //添加参数 - curl_setopt($ch, CURLOPT_POSTFIELDS, $data); + curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); //设置header curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); //关闭请求资源