diff --git a/api/controllers/plan/Xzcall.php b/api/controllers/plan/Xzcall.php index c43ec055..1a506f04 100644 --- a/api/controllers/plan/Xzcall.php +++ b/api/controllers/plan/Xzcall.php @@ -24,7 +24,7 @@ class Xzcall extends HD_Controller $this->log_file = 'call_xz.log'; $this->load->model('receiver/receiver_xz_model'); $this->load->model('receiver/receiver_customers_model', 'customers_model'); - $this->load->model('receiver/order/receiver_orders_model', 'orders_model'); + $this->load->model('receiver/order/receiver_orders_v2_model','orders_model'); } public function index() @@ -91,7 +91,7 @@ class Xzcall extends HD_Controller $redis->delete($cache_key); if ($row['cf_title'] == 'order') { //订单 $order = $this->orders_model->get(['id' => $row['cf_id']]); - $cust = $this->customers_model->get(['id' => $order['rid']]); + $cust = $this->customers_model->get(['id' => $order['customer_id']]); } else { //客户 $cust = $this->customers_model->get(['id' => $row['cf_id']]); } diff --git a/api/controllers/wxapp/licheb/Xz.php b/api/controllers/wxapp/licheb/Xz.php index b321fd47..6e8916a6 100644 --- a/api/controllers/wxapp/licheb/Xz.php +++ b/api/controllers/wxapp/licheb/Xz.php @@ -18,7 +18,7 @@ class Xz extends Wxapp{ $this->login_white = array();//登录白名单 $this->load->model('receiver/receiver_customers_model','customers_model'); - $this->load->model('receiver/order/receiver_orders_model','orders_model'); + $this->load->model('receiver/order/receiver_orders_v2_model','orders_model'); $this->load->model('receiver/receiver_xz_model'); $this->log_file = 'call.log'; @@ -33,7 +33,7 @@ class Xz extends Wxapp{ $cus_id = $id; if($type==1){ //订单 $order = $this->orders_model->get(['id'=>$id]); - $cus_id = $order['rid']; + $cus_id = $order['customer_id']; } $row = $this->customers_model->get(['id'=>$cus_id]); if(!$row || !$row['mobile']){