edit-api-licheb-up-clues

This commit is contained in:
lccsw
2021-09-15 16:44:50 +08:00
parent 069398235e
commit 3fb9778889
@@ -463,14 +463,9 @@ class Customers extends Wxapp{
throw new Exception('分派失败', API_CODE_FAIL);
}
//写日志
$this->load->model('receiver/receiver_clues_model','clues_model');
$this->load->library('receiver/customers_entity');
$customers = $this->customers_model->get_map_by_ids ($id_arr,'id,rid');
foreach($id_arr as $val){
$rid = $customers[$val][0]['rid']; //线索id
if($rid){ //更新线索跟进人
$this->clues_model->update(['admin_id'=>$admin_id,'status'=>2],['id'=>$rid]);
}
$log = "分配客户";
$this->customers_entity->add_log($val,$uid,$uname,$log);
}