From afb831cbca965ee4b711aefb826d19a8a3512de2 Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 25 May 2018 10:40:08 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E5=A2=9E=E5=8A=A0=E4=BC=81?= =?UTF-8?q?=E4=B8=9Asub=5Fmch=5Fid=E5=8F=8Asub=5Fappid=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=94=AF=E6=8C=81(=E4=B9=9F=E5=8F=AF=E4=BB=A5=E4=BC=A0?= =?UTF-8?q?=E5=88=B0options=E4=B8=AD)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WeChat/Contracts/BasicPay.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/WeChat/Contracts/BasicPay.php b/WeChat/Contracts/BasicPay.php index c96f2d9..9c672dc 100644 --- a/WeChat/Contracts/BasicPay.php +++ b/WeChat/Contracts/BasicPay.php @@ -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')); + } } /**