修复TransferGateway 下 undefined type

This commit is contained in:
lisq 2018-11-10 15:48:29 +08:00
parent 5816c97efa
commit 576f67b89d

View File

@ -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'];