From a41c2dc0ecbb753c7e202a5b23e2b91cd66177c0 Mon Sep 17 00:00:00 2001 From: senyao <741606767@qq.com> Date: Fri, 5 Jul 2024 14:19:27 +0800 Subject: [PATCH] a --- service/app/command/SpiderDy.php | 15 +++++---------- service/app/command/SpiderMt.php | 5 +++-- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/service/app/command/SpiderDy.php b/service/app/command/SpiderDy.php index c5ca7e18..25846b17 100644 --- a/service/app/command/SpiderDy.php +++ b/service/app/command/SpiderDy.php @@ -47,16 +47,11 @@ class SpiderDy extends Command $us = []; foreach ($users as $u) { $ru = Redis::get('CRM:USER:ONLINE:' . $u->id); - if (!config('app.debug', true)) { - if (empty($ru)) continue; - } - //过滤不分配订单的客服用户 - $isEndWork = Redis::get("CRM:USER:ENDWORK:" . $u->id); - if (empty($isEndWork)) { - $_u = new stdClass(); - $_u->username = $u->id; - $us[] = $_u; - } + if (empty($ru)) continue; + + $_u = new stdClass(); + $_u->username = $u->id; + $us[] = $_u; }; $this->_users = $us; return $this->_users; diff --git a/service/app/command/SpiderMt.php b/service/app/command/SpiderMt.php index 895fbc94..a4a2b7f0 100644 --- a/service/app/command/SpiderMt.php +++ b/service/app/command/SpiderMt.php @@ -48,9 +48,10 @@ class SpiderMt extends Command $us = []; foreach ($users as $u) { $ru = Redis::get('CRM:USER:ONLINE:' . $u->id); - if (!config('app.debug', true)) { + if (empty($ru)) continue; + /*if (!config('app.debug', true)) { if (empty($ru)) continue; - } + }*/ //过滤不分配订单的客服用户 /*$isEndWork = Redis::get("CRM:USER:ENDWORK:" . $u->id); if (empty($isEndWork)) {