From 79e0e10061f52edfafdffae9c32c58f1fb12d683 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Fri, 5 May 2023 00:09:19 +0800 Subject: [PATCH] test --- ThinkPHP/Library/Org/QzlPay/Client.class.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ThinkPHP/Library/Org/QzlPay/Client.class.php b/ThinkPHP/Library/Org/QzlPay/Client.class.php index 1622af045..7032b5637 100644 --- a/ThinkPHP/Library/Org/QzlPay/Client.class.php +++ b/ThinkPHP/Library/Org/QzlPay/Client.class.php @@ -33,10 +33,9 @@ class Client curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, true); - // $headers = ['Content-Type: application/x-www-form-urlencoded']; - // curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); - // curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($params)); - curl_setopt($curl, CURLOPT_POSTFIELDS, $params); + $headers = ['Content-Type: application/x-www-form-urlencoded']; + curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); + curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($params)); $response = curl_exec($curl); curl_close($curl); return $response;