Skip to content

Commit

Permalink
fix: 支付通知允许传数组内容
Browse files Browse the repository at this point in the history
  • Loading branch information
zoujingli committed Sep 20, 2024
1 parent 8c0a872 commit 0f9023d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WeChat/Contracts/BasicWePay.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static function instance(array $config)
*/
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;
}
Expand Down

0 comments on commit 0f9023d

Please sign in to comment.