From 31b2d7047e18fe92fb2b0d4a2c85c3fc88691ecc Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Sun, 11 May 2025 22:09:40 +0800 Subject: [PATCH] 0511 --- api/controllers/wxapp/licheb/Customers.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/api/controllers/wxapp/licheb/Customers.php b/api/controllers/wxapp/licheb/Customers.php index 439a455c..dfbe0ca9 100644 --- a/api/controllers/wxapp/licheb/Customers.php +++ b/api/controllers/wxapp/licheb/Customers.php @@ -1225,7 +1225,7 @@ class Customers extends Wxapp } } !$str_uids && $str_uids = '-1'; - $where["id in(select customer_id from lc_receiver_customer_oplogs where type={$oplogs_type} and uid in({$str_uids}) and c_time>={$s_c_time} and c_time<={$e_c_time})"] = null; + $where["(of2_id = 10 and c_time>={$s_c_time} and c_time<={$e_c_time}) OR id in(select customer_id from lc_receiver_customer_oplogs where type={$oplogs_type} and uid in({$str_uids}) and c_time>={$s_c_time} and c_time<={$e_c_time})"] = null; $count = $this->customers_model->count($where); } } @@ -1243,16 +1243,6 @@ class Customers extends Wxapp foreach ($rows as $k => $v) { $mobile = $nickname = $avatar = ''; $re_item = []; - if ($v['external_userid']) {//查找企微用户 - $where_wec = ['external_userid' => $v['external_userid']]; - $v['userid'] && $where_wec['userid'] = $v['userid']; - $res_wec = $this->mdWechat->get($where_wec); - if ($res_wec) { - $mobile = $res_wec['mobile']; - $nickname = $res_wec['name']; - $avatar = $res_wec['avatar']; - } - } if ($mobile) {//查找关连客户 $where = ['mobile' => $mobile, 'status>=' => 0]; $this->biz_id && $where['biz_id'] = $this->biz_id;