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