From aef3a81546b288f86b72757e4d6ddfa9541ed0d5 Mon Sep 17 00:00:00 2001 From: dengbw Date: Wed, 12 Oct 2022 16:21:03 +0800 Subject: [PATCH] user_10112_2 --- api/controllers/wxapp/licheb/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/controllers/wxapp/licheb/User.php b/api/controllers/wxapp/licheb/User.php index 66036ee0..44876d40 100644 --- a/api/controllers/wxapp/licheb/User.php +++ b/api/controllers/wxapp/licheb/User.php @@ -327,8 +327,8 @@ class User extends Wxapp $s_month = date('Y-m-01', strtotime(date("Y-m-d"))) . ' 00:00:00'; $e_month = date('Y-m-d', strtotime("$s_month +1 month -1 day")) . ' 23:59:59'; //线索 - $where_today_xs = ['cs_biz_id<>' => -1, 'status>=' => 0, 'c_time>=' => strtotime($s_today), 'c_time<=' => strtotime($e_today)]; - $where_month_xs = ['cs_biz_id<>' => -1, 'status>=' => 0, 'c_time>=' => strtotime($s_month), 'c_time<=' => strtotime($e_month)]; + $where_today_xs = ['biz_id' => $biz_id, 'cs_biz_id<>' => -1, 'status>=' => 0, 'c_time>=' => strtotime($s_today), 'c_time<=' => strtotime($e_today)]; + $where_month_xs = ['biz_id' => $biz_id, 'cs_biz_id<>' => -1, 'status>=' => 0, 'c_time>=' => strtotime($s_month), 'c_time<=' => strtotime($e_month)]; //企微 $where_today_qy = ['change_type' => 'add_external_contact', 'c_time>=' => strtotime($s_today), 'c_time<=' => strtotime($e_today)]; $where_month_qy = ['change_type' => 'add_external_contact', 'c_time>=' => strtotime($s_today), 'c_time<=' => strtotime($e_today)];