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 +}