diff --git a/home/controllers/h5/Persona.php b/home/controllers/h5/Persona.php index 422e0a07..d725ba61 100644 --- a/home/controllers/h5/Persona.php +++ b/home/controllers/h5/Persona.php @@ -215,7 +215,7 @@ class Persona extends CI_Controller $this->load->model('receiver/receiver_customers_model', 'mdCustomers'); $this->load->model('receiver/receiver_customer_tagdata_model', 'mdCustomerTagdata'); $c_id = $userInfo['c_id']; - $result = ''; + $result = $re_cus = ''; if ($c_id) {//已存在客户,更新资料 $up_data = ['of_id' => $params['of_id'], 'of2_id' => $params['of2_id']]; $result = $this->mdCustomers->update($up_data, ['id' => $c_id]); @@ -318,6 +318,9 @@ class Persona extends CI_Controller $this->wx_qyapi->get_external_contact(['url' => 'mark_tag', 'userid' => $userInfo['userid'], 'external_userid' => $userInfo['external_userid'], 'add_tag' => $add_tag, 'remove_tag' => $remove_tag]); } + if ($re_cus) { + $this->show_json(200, '已有同事在跟进该客户'); + } if ($result) { $this->show_json(200, '保存成功'); } else {