From a8a7657ae87b9423d171e54b935f5c577ff8e481 Mon Sep 17 00:00:00 2001 From: dengbw Date: Fri, 10 Jun 2022 15:50:16 +0800 Subject: [PATCH] Customers_610_2 --- api/controllers/wxapp/licheb/Customers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controllers/wxapp/licheb/Customers.php b/api/controllers/wxapp/licheb/Customers.php index 300c6c4b..502da794 100644 --- a/api/controllers/wxapp/licheb/Customers.php +++ b/api/controllers/wxapp/licheb/Customers.php @@ -729,7 +729,7 @@ class Customers extends Wxapp $re_vis = $this->mdCustomerVisitData->get($where_vis); if (!$re_vis) { //删除未回访计划 - $this->mdCustomerVisitData->delete(['c_id' => $id, 'biz_id' => $biz_id, 'status<>' => 2, 't_day >=' => $visit_time]); + $this->mdCustomerVisitData->delete(['c_id' => $id, 'biz_id' => $biz_id, 'status<>' => 2, 't_day >=' => date('Y-m-d')]); $where_vis['level'] = $level; $where_vis['c_time'] = time(); $this->mdCustomerVisitData->add($where_vis);