From 561b105d31c22aaa8687c7b8d73680b812babdef Mon Sep 17 00:00:00 2001 From: xl Date: Mon, 3 Jun 2024 11:11:48 +0800 Subject: [PATCH] eee --- wx/V3/WxV3PaymentNotify.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wx/V3/WxV3PaymentNotify.php b/wx/V3/WxV3PaymentNotify.php index debfad6..79912bc 100644 --- a/wx/V3/WxV3PaymentNotify.php +++ b/wx/V3/WxV3PaymentNotify.php @@ -54,9 +54,9 @@ class WxV3PaymentNotify extends SmallProgram public function verify(RequestInterface $request): bool { $platformPublicKeyInstance = $this->rsaFrom($this->payConfig->pay->wx->mchCert, KEY_TYPE_PUBLIC); - $inWechatpaySignature = $request->getHeaderLine('Wechatpay-Signature'); // 请根据实际情况获取 - $inWechatpayTimestamp = $request->getHeaderLine('Wechatpay-Timestamp'); // 请根据实际情况获取 - $inWechatpayNonce = $request->getHeaderLine('Wechatpay-Nonce'); // 请根据实际情况获取 + $inWechatpaySignature = $request->getHeaderLine('wechatpay-signature'); // 请根据实际情况获取 + $inWechatpayTimestamp = $request->getHeaderLine('wechatpay-timestamp'); // 请根据实际情况获取 + $inWechatpayNonce = $request->getHeaderLine('wechatpay-nonce'); // 请根据实际情况获取 $inBody = $request->getBody()->getContents(); // 请根据实际情况获取,例如: file_get_contents('php://input'); $timeOffsetStatus = 300 >= abs(time() - (int)$inWechatpayTimestamp); $verifiedStatus = $this->notifyVerify(