From 576f67b89db3466bbd749fa371677a3683bd834c Mon Sep 17 00:00:00 2001 From: lisq Date: Sat, 10 Nov 2018 15:48:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DTransferGateway=20=E4=B8=8B?= =?UTF-8?q?=20undefined=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Gateways/Wechat/TransferGateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gateways/Wechat/TransferGateway.php b/src/Gateways/Wechat/TransferGateway.php index d6ecab2..36523cc 100644 --- a/src/Gateways/Wechat/TransferGateway.php +++ b/src/Gateways/Wechat/TransferGateway.php @@ -29,7 +29,7 @@ class TransferGateway extends Gateway unset($payload['sub_mch_id'], $payload['sub_appid']); } - $type = Support::getInstance()->getTypeName($payload['type']); + $type = Support::getInstance()->getTypeName($payload['type']??''); $payload['mch_appid'] = Support::getInstance()->getConfig($type, ''); $payload['mchid'] = $payload['mch_id'];