From ea3539474c8bed0a7639ab3f327bd41fb9cdbaeb Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Wed, 6 Apr 2022 17:38:24 +0800 Subject: [PATCH] edit-api-old_create_order --- common/libraries/receiver/Orders_entity.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/common/libraries/receiver/Orders_entity.php b/common/libraries/receiver/Orders_entity.php index e267f075..5416b969 100644 --- a/common/libraries/receiver/Orders_entity.php +++ b/common/libraries/receiver/Orders_entity.php @@ -468,10 +468,8 @@ class Orders_entity{ } if($to_com_price>0 && !$this->ci->app_liche_orders_model->count(['o_id'=>$this->order_row['id'],'type'=>3,'status>='=>0])){ $order_type = 3; - if(!$this->order_row['payway']){ //分期订单 尾款商户号取定定金订单的 - $book_order = $this->ci->app_liche_orders_model->get(['status>='=>0,'type'=>1,'o_id'=>$this->order_row['id']]); - $book_order['mch_id'] && $company['wx_mchid'] = $book_order['mch_id']; - } + $book_order = $this->ci->app_liche_orders_model->get(['status>='=>0,'type'=>1,'o_id'=>$this->order_row['id']]); + $book_order['mch_id'] && $company['wx_mchid'] = $book_order['mch_id']; $sid = create_order_no(350200,'liche',1,$order_type); $add_data[] = [ 'o_id' => $this->order_row['id'],