diff --git a/Server/application/chukebao/controller/CustomerServiceController.php b/Server/application/chukebao/controller/CustomerServiceController.php index deb955bc..d0eefb66 100644 --- a/Server/application/chukebao/controller/CustomerServiceController.php +++ b/Server/application/chukebao/controller/CustomerServiceController.php @@ -21,8 +21,12 @@ class CustomerServiceController extends BaseController // 确保即使有空数组也不会报错,并且去除重复值 $accountIds = array_unique(array_merge($accountIds1 ?: [], $accountIds2 ?: [])); + + + $wechatAliveTime = time() - 86400 * 30; $list = Db::table('s2_wechat_account') ->whereIn('id',$accountIds) + ->where('wechatAliveTime','>',$wechatAliveTime) ->order('id desc') ->group('id') ->select();