From c24910342a9017b7944f55719dda44272ad2e411 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Fri, 17 Nov 2023 09:34:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0post=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); //关闭请求资源