From c59df3bd92c2dafec181134cabf6edfc531eb03c Mon Sep 17 00:00:00 2001 From: lccsw <1127794702@qq.com> Date: Tue, 10 Aug 2021 10:58:00 +0800 Subject: [PATCH] edit-plan-xcall --- api/controllers/plan/Xzcall.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/api/controllers/plan/Xzcall.php b/api/controllers/plan/Xzcall.php index 02ea585a..ca7ab26d 100644 --- a/api/controllers/plan/Xzcall.php +++ b/api/controllers/plan/Xzcall.php @@ -74,14 +74,15 @@ class Xzcall extends HD_Controller //解绑 $result = $xcall->SWunbind($data['to'], $data['virtualMobile']); if ($row['cf_title'] == 'order') { //订单 - $cust = $this->orders_model->get(['id' => $row['cf_id']]); - $this->load->library('receiver/orders_entity'); - $this->orders_entity->add_log($cust['id'], $row['cf_uid'], $data['uname'], $row['id'], 2); + $order = $this->orders_model->get(['id' => $row['cf_id']]); + $cust = $this->customers_model->get(['id' => $order['rid']]); + //$this->load->library('receiver/orders_entity'); + //$this->orders_entity->add_log($cust['id'], $row['cf_uid'], $data['uname'], $row['id'], 2); } else { //客户 $cust = $this->customers_model->get(['id' => $row['cf_id']]); - $this->load->library('receiver/customers_entity'); - $this->customers_entity->add_log($cust['id'], $row['cf_uid'], $data['uname'], $row['id'], 2); } + $this->load->library('receiver/customers_entity'); + $this->customers_entity->add_log($cust['id'], $row['cf_uid'], $data['uname'], $row['id'], 2); //删除redis $cache_key = "XZ_LICHEB_MOBILEB_{$cust['mobile']}_{$row['cf_uid']}"; $redis = &load_cache('redis'); @@ -107,7 +108,7 @@ class Xzcall extends HD_Controller if ($data['getFileUrl']) { require_once COMMPATH . 'third_party/Xcall/Xcall.php'; $xcall = new Xcall(); - $result = $xcall->getFile($data['getFileUrl'], $data['mid'], $data['tag']); + $result = $xcall->getFile($data['readUrl'], $data['mid'], $data['tag']); if ($result['code']) { //上传七牛 $this->load->library('qiniu'); $qiniu = new Qiniu(['type' => 'video']);