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)) {