diff --git a/service/app/command/SpiderDy.php b/service/app/command/SpiderDy.php index d609f726..bf420663 100644 --- a/service/app/command/SpiderDy.php +++ b/service/app/command/SpiderDy.php @@ -63,6 +63,8 @@ class SpiderDy extends Command protected function poolUser($status = 0, $categoryDesc = '') { + $routeType = AdminController::ROUTE_LISTS[mb_substr($categoryDesc, 0, 2)] ?? 10; + $status .= $routeType; if (empty($this->_redis_pool[$status])) { $this->_redis_pool[$status] = Redis::hGetAll('CRM:Pool:' . $status); $routeType = AdminController::ROUTE_LISTS[mb_substr($categoryDesc, 0, 2)] ?? 10; diff --git a/service/app/command/SpiderMt.php b/service/app/command/SpiderMt.php index 41d43598..14e7bfab 100644 --- a/service/app/command/SpiderMt.php +++ b/service/app/command/SpiderMt.php @@ -87,9 +87,10 @@ class SpiderMt extends Command protected function poolUser($status = 0, $categoryDesc = '') { + $routeType = AdminController::ROUTE_LISTS[mb_substr($categoryDesc, 0, 2)] ?? 10; + $status .= $routeType; if (empty($this->_redis_pool[$status])) { $this->_redis_pool[$status] = Redis::hGetAll('CRM:Pool:' . $status); - $routeType = AdminController::ROUTE_LISTS[mb_substr($categoryDesc, 0, 2)] ?? 10; $users = $this->users($routeType); $_users = []; if (empty($this->_redis_pool[$status])) {