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;