[更新]增加企业sub_mch_id及sub_appid配置支持(也可以传到options中)

This commit is contained in:
Anyon 2018-05-25 10:40:08 +08:00
parent aacd8a4563
commit afb831cbca

View File

@ -61,6 +61,13 @@ class BasicPay
'mch_id' => $this->config->get('mch_id'),
'nonce_str' => Tools::createNoncestr(),
]);
// 商户参数支持
if ($this->config->get('sub_appid')) {
$this->params->set('sub_appid', $this->config->get('sub_appid'));
}
if ($this->config->get('sub_mch_id')) {
$this->params->set('sub_mch_id', $this->config->get('sub_mch_id'));
}
}
/**