This commit is contained in:
parent
41107775a9
commit
a41c2dc0ec
|
@ -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;
|
||||||
|
|
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue