From 3be0db193b6c1b884571a21c7700f5283b274eca Mon Sep 17 00:00:00 2001 From: Vimin Date: Wed, 4 Dec 2024 20:03:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E5=80=BC=E4=B8=BA0?= =?UTF-8?q?=E3=80=81'0'=E7=9A=84=E5=8F=82=E6=95=B0=E4=BC=9A=E8=A2=AB?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E7=9A=84=E9=97=AE=E9=A2=98=20(#2864)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Pay/LegacySignature.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Pay/LegacySignature.php b/src/Pay/LegacySignature.php index 3b7de8c7c..0a82824e5 100644 --- a/src/Pay/LegacySignature.php +++ b/src/Pay/LegacySignature.php @@ -38,7 +38,8 @@ public function sign(array $params): array 'sub_appid' => $params['sub_appid'] ?? null, ], $params - ) + ), + static fn ($value, $key) => !($key === 'sign' || $value === '' || is_null($value)) ); ksort($attributes);