From 24655a46441f094b579cd23bc57569500e8f025c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 18 Feb 2025 09:09:32 +0800 Subject: [PATCH] eee --- wx/V3/WxV3PaymentNotify.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wx/V3/WxV3PaymentNotify.php b/wx/V3/WxV3PaymentNotify.php index e339ab9..7cf30fd 100644 --- a/wx/V3/WxV3PaymentNotify.php +++ b/wx/V3/WxV3PaymentNotify.php @@ -63,10 +63,14 @@ class WxV3PaymentNotify extends SmallProgram $this->lineFeed($inWechatpayTimestamp, $inWechatpayNonce, $inBody), $inWechatpaySignature, $platformPublicKeyInstance); + + $this->decode($this->resource['ciphertext'], $this->resource['nonce'], $this->resource['associated_data']); + if (!$timeOffsetStatus || !$verifiedStatus) { return false; + } else { + return true; } - return $this->decode($this->resource['ciphertext'], $this->resource['nonce'], $this->resource['associated_data']); } @@ -168,4 +172,4 @@ class WxV3PaymentNotify extends SmallProgram } -} \ No newline at end of file +}