From 4a93837a27b6a3501935c5fc42e29d8bd3e3d614 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Fri, 5 May 2023 21:53:14 +0800 Subject: [PATCH] xiug --- ThinkPHP/Library/Org/QzlPay/Response.class.php | 1 - ThinkPHP/Library/Org/QzlPay/Signer.class.php | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ThinkPHP/Library/Org/QzlPay/Response.class.php b/ThinkPHP/Library/Org/QzlPay/Response.class.php index 9b02b27f5..333e9ad2e 100644 --- a/ThinkPHP/Library/Org/QzlPay/Response.class.php +++ b/ThinkPHP/Library/Org/QzlPay/Response.class.php @@ -58,7 +58,6 @@ class Response public function verify() { - var_dump('paySecret', Config::get('paySecret')); return Signer::verify($this->data, Config::get('paySecret')); } } \ No newline at end of file diff --git a/ThinkPHP/Library/Org/QzlPay/Signer.class.php b/ThinkPHP/Library/Org/QzlPay/Signer.class.php index 4997f39c7..53f210860 100644 --- a/ThinkPHP/Library/Org/QzlPay/Signer.class.php +++ b/ThinkPHP/Library/Org/QzlPay/Signer.class.php @@ -15,6 +15,9 @@ class Signer ksort($params); $signPrams = []; foreach ($params as $key => $value) { + if ($value === '') { + continue; + } $signPrams[] = $key . '=' . $value; } $signPrams[] = 'paySecret=' . $paySecret;