From 9297ebe2634f8cfe7667e435720214327fbda9d1 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Fri, 5 May 2023 00:04:00 +0800 Subject: [PATCH] test --- ThinkPHP/Library/Org/QzlPay/Client.class.php | 7 ++++--- ThinkPHP/Library/Org/QzlPay/Signer.class.php | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ThinkPHP/Library/Org/QzlPay/Client.class.php b/ThinkPHP/Library/Org/QzlPay/Client.class.php index 7032b5637..1622af045 100644 --- a/ThinkPHP/Library/Org/QzlPay/Client.class.php +++ b/ThinkPHP/Library/Org/QzlPay/Client.class.php @@ -33,9 +33,10 @@ 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)); + // $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); $response = curl_exec($curl); curl_close($curl); return $response; diff --git a/ThinkPHP/Library/Org/QzlPay/Signer.class.php b/ThinkPHP/Library/Org/QzlPay/Signer.class.php index 81ad2b7ac..4997f39c7 100644 --- a/ThinkPHP/Library/Org/QzlPay/Signer.class.php +++ b/ThinkPHP/Library/Org/QzlPay/Signer.class.php @@ -19,6 +19,7 @@ class Signer } $signPrams[] = 'paySecret=' . $paySecret; $signString = implode('&', $signPrams); + Log::write('SIGN_STRING: ' . $signString); return strtoupper(md5($signString)); }