From fe940dbf2d2971b2e01ffe4fa59eb142fac55bdc Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Wed, 31 Aug 2022 16:31:23 +0800 Subject: [PATCH] edit-common-mchid --- common/libraries/receiver/Orders_v2_entity.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/libraries/receiver/Orders_v2_entity.php b/common/libraries/receiver/Orders_v2_entity.php index 2c5401b5..82e0ac7d 100644 --- a/common/libraries/receiver/Orders_v2_entity.php +++ b/common/libraries/receiver/Orders_v2_entity.php @@ -279,6 +279,10 @@ class Orders_v2_entity{ if($pid && !$sub_row){ //获取微信商户号 $companys = $this->get_biz_mchid($this->order_row['biz_id'],$this->order_row['brand_id'],$this->order_row['if_local_bill']); + if($this->order_row['biz_id']==63){ //零跑店 门店ID= 63,车款收款都用 id = 12 的公司 合同收款公司不变 + $filed = 'id,wx_mchid,title,short,credit_code,wx_mchid,img_seal'; + $companys['company'] = $this->ci->sys_company_model->get(['id'=>12],$filed); + } $sid = create_order_no(350200,'liche',1,1); $sub_data = [ 'o_id' => $this->order_row['id'], @@ -319,6 +323,10 @@ class Orders_v2_entity{ //获取微信商户号 $companys = $this->get_biz_mchid($this->order_row['biz_id'],$this->order_row['brand_id'],$this->order_row['if_local_bill']); + if($this->order_row['biz_id']==63){ //零跑店 门店ID= 63,车款收款都用 id = 12 的公司 合同收款公司不变 + $filed = 'id,wx_mchid,title,short,credit_code,wx_mchid,img_seal'; + $companys['company'] = $this->ci->sys_company_model->get(['id'=>12],$filed); + } $srv_money = $this->order_srv_money($oid); //服务费 $money_json = json_decode($this->order_row['money_json'],true);