mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-11-07 04:02:14 +08:00
fix: 更新支付通知接收参数类型问题,支持 null 自动获取
This commit is contained in:
parent
1f0b17fd1c
commit
0885bd4c5a
@ -104,11 +104,11 @@ class Order extends BasicWePay
|
||||
|
||||
/**
|
||||
* 支付通知解析
|
||||
* @param array $data
|
||||
* @param array|null $data
|
||||
* @return array
|
||||
* @throws \WeChat\Exceptions\InvalidDecryptException
|
||||
*/
|
||||
public function notify(array $data = [])
|
||||
public function notify($data = [])
|
||||
{
|
||||
if (empty($data)) {
|
||||
$data = json_decode(Tools::getRawInput(), true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user