From 0f9023dfbfa501cf69745f7debf04b34b482d8ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 20 Sep 2024 15:45:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=AF=E4=BB=98=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E5=85=81=E8=AE=B8=E4=BC=A0=E6=95=B0=E7=BB=84=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WeChat/Contracts/BasicWePay.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WeChat/Contracts/BasicWePay.php b/WeChat/Contracts/BasicWePay.php index 5697485..7af01a4 100644 --- a/WeChat/Contracts/BasicWePay.php +++ b/WeChat/Contracts/BasicWePay.php @@ -98,7 +98,7 @@ class BasicWePay */ public function getNotify($xml = '') { - $data = Tools::xml2arr(empty($xml) ? Tools::getRawInput() : $xml); + $data = is_array($xml) ? $xml : Tools::xml2arr(empty($xml) ? Tools::getRawInput() : $xml); if (isset($data['sign']) && $this->getPaySign($data) === $data['sign']) { return $data; }