From 603d21a8cb11099a304cf853285cbcbc3fc3d1a0 Mon Sep 17 00:00:00 2001 From: dengbw Date: Tue, 26 Oct 2021 10:38:08 +0800 Subject: [PATCH] customer_visit_1026 --- api/controllers/plan/Licheb.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/controllers/plan/Licheb.php b/api/controllers/plan/Licheb.php index db3a40e9..96d1f93f 100644 --- a/api/controllers/plan/Licheb.php +++ b/api/controllers/plan/Licheb.php @@ -48,7 +48,8 @@ class Licheb extends HD_Controller $c_id = $redis->get($redisVisit); !$c_id && $c_id = 0; $log = array(); - $where = array('id >' => $c_id, 'status in(0,1)' => null, 'admin_id >' => 0, 'c_time <' => strtotime($day . ' 00:00:00')); + $where = array('id >' => $c_id, 'status in(0,1)' => null, 'admin_id >' => 0 + , 'c_time >=' => strtotime('2021-10-25 00:00:00'), 'c_time <' => strtotime($day . ' 00:00:00')); $res_c = $this->mdCustomers->select($where, 'id asc', 1, $size, 'id,level'); if (!$res_c) { echo '执行到当前客户id:' . $c_id . '暂无数据'; @@ -137,7 +138,8 @@ class Licheb extends HD_Controller $c_id = $redis->get($redisVisit); !$c_id && $c_id = 0; $log = array(); - $where = array('id >' => $c_id, 'status in(0,1)' => null, 'admin_id >' => 0, 'c_time <' => strtotime($day . ' 00:00:00')); + $where = array('id >' => $c_id, 'status in(0,1)' => null, 'admin_id >' => 0 + , 'c_time >=' => strtotime('2021-10-25 00:00:00'), 'c_time <' => strtotime($day . ' 00:00:00')); $res_c = $this->mdCustomers->select($where, 'id asc', 1, $size, 'id,level'); if (!$res_c) { echo '执行到当前客户id:' . $c_id . '暂无数据';