From 24c32ad819733d7c2897076f8230d81b672484a1 Mon Sep 17 00:00:00 2001 From: jianghanbo Date: Mon, 12 Aug 2024 14:36:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E7=BA=BF=E8=B7=AF=E5=88=86?= =?UTF-8?q?=E9=85=8D=E5=AE=A2=E6=9C=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/app/command/SpiderDy.php | 2 ++ service/app/command/SpiderMt.php | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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])) {