From 5b2e14a9cdb1047bb7c9da9f02a59fa531f183f8 Mon Sep 17 00:00:00 2001 From: yansongda Date: Sat, 24 Jun 2023 19:55:50 +0800 Subject: [PATCH] =?UTF-8?q?optimize:=20=E4=BC=98=E5=8C=96=E6=97=A0?= =?UTF-8?q?=E7=AD=BE=E5=90=8D=E6=97=B6=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Functions.php b/src/Functions.php index 4036ab665..6731db179 100644 --- a/src/Functions.php +++ b/src/Functions.php @@ -196,7 +196,7 @@ function verify_wechat_sign(ResponseInterface|ServerRequestInterface $message, a $public = get_wechat_config($params)['wechat_public_cert_path'][$wechatSerial] ?? null; if (empty($sign)) { - throw new InvalidResponseException(Exception::INVALID_RESPONSE_SIGN, '', ['headers' => $message->getHeaders(), 'body' => $body]); + throw new InvalidResponseException(Exception::INVALID_RESPONSE_SIGN, $body, ['headers' => $message->getHeaders(), 'body' => $body]); } $public = get_public_cert(