This commit is contained in:
senyao 2024-07-05 14:19:27 +08:00
parent 41107775a9
commit a41c2dc0ec
2 changed files with 8 additions and 12 deletions

View File

@ -47,16 +47,11 @@ class SpiderDy extends Command
$us = []; $us = [];
foreach ($users as $u) { foreach ($users as $u) {
$ru = Redis::get('CRM:USER:ONLINE:' . $u->id); $ru = Redis::get('CRM:USER:ONLINE:' . $u->id);
if (!config('app.debug', true)) { if (empty($ru)) continue;
if (empty($ru)) continue;
} $_u = new stdClass();
//过滤不分配订单的客服用户 $_u->username = $u->id;
$isEndWork = Redis::get("CRM:USER:ENDWORK:" . $u->id); $us[] = $_u;
if (empty($isEndWork)) {
$_u = new stdClass();
$_u->username = $u->id;
$us[] = $_u;
}
}; };
$this->_users = $us; $this->_users = $us;
return $this->_users; return $this->_users;

View File

@ -48,9 +48,10 @@ class SpiderMt extends Command
$us = []; $us = [];
foreach ($users as $u) { foreach ($users as $u) {
$ru = Redis::get('CRM:USER:ONLINE:' . $u->id); $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; if (empty($ru)) continue;
} }*/
//过滤不分配订单的客服用户 //过滤不分配订单的客服用户
/*$isEndWork = Redis::get("CRM:USER:ENDWORK:" . $u->id); /*$isEndWork = Redis::get("CRM:USER:ENDWORK:" . $u->id);
if (empty($isEndWork)) { if (empty($isEndWork)) {