From 1ac78cd26bd3fec31fb1f44c9c4f2478fa0e68ac Mon Sep 17 00:00:00 2001 From: dengbw Date: Fri, 22 Jul 2022 10:47:02 +0800 Subject: [PATCH] blindbox_722_2 --- home/controllers/h5/Persona.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/home/controllers/h5/Persona.php b/home/controllers/h5/Persona.php index 731d8f68..4ac49550 100644 --- a/home/controllers/h5/Persona.php +++ b/home/controllers/h5/Persona.php @@ -111,7 +111,7 @@ class Persona extends CI_Controller } } } - $avatar = $mobile = $name = $unionid = ''; + $avatar = $mobile = $name = $unionid = $status = ''; $gender = $biz_id = 0; if ($remark_mobiles && $remark_mobiles != '[]' && is_array($remark_mobiles)) { $mobile = $remark_mobiles[0];//取第一个手机号 @@ -136,6 +136,7 @@ class Persona extends CI_Controller if ($biz_id && $mobile) {//查找已存在客户 $re_cus = $this->mdCustomers->get(['biz_id' => $biz_id, 'mobile' => $mobile, 'status<>' => -1]); if ($re_cus) { + $status = $re_cus['status']; $c_id = $re_cus['id']; $of_id = $re_cus['of_id']; $of2_id = $re_cus['of2_id']; @@ -179,9 +180,9 @@ class Persona extends CI_Controller } //线索来源 $offline_sources = $this->mdCustomers->offlineSources(); -// if (strlen($status) && $status == 0) {//未见客户 -// unset($offline_sources[1]); -// } + if (strlen($status) && $status == 0) {//未见客户不显示自然进店 + unset($offline_sources[1]); + } $ii = 0; $description_arr = $description ? explode('-', $description) : []; foreach ($offline_sources as $key => $val) {