mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-05 01:42:45 +08:00
fix: 支付通知允许传数组内容
This commit is contained in:
parent
8c0a87252c
commit
0f9023dfbf
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user