edit-plan-xcall

This commit is contained in:
lccsw
2021-08-10 10:58:00 +08:00
parent 4532374ce1
commit c59df3bd92
+7 -6
View File
@@ -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']);