From 8bf6cbe1d493f97a46ea02aa6f30f13417d48af7 Mon Sep 17 00:00:00 2001 From: wong <106998207@qq.com> Date: Thu, 16 Oct 2025 11:42:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/application/command/WechatChatroomCommand.php | 1 + Server/application/command/WechatFriendCommand.php | 1 + .../cunkebao/controller/plan/PlanSceneV1Controller.php | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Server/application/command/WechatChatroomCommand.php b/Server/application/command/WechatChatroomCommand.php index b751435b..e770b4b4 100644 --- a/Server/application/command/WechatChatroomCommand.php +++ b/Server/application/command/WechatChatroomCommand.php @@ -38,6 +38,7 @@ class WechatChatroomCommand extends Command // 检查队列是否已经在运行 $queueLockKey = "queue_lock:{$this->queueName}:{$isDel}"; + Cache::rm($queueLockKey); if (Cache::get($queueLockKey)) { $output->writeln("队列 {$this->queueName} 已经在运行中,删除状态:{$isDel},跳过执行"); Log::warning("队列 {$this->queueName} 已经在运行中,删除状态:{$isDel},跳过执行"); diff --git a/Server/application/command/WechatFriendCommand.php b/Server/application/command/WechatFriendCommand.php index 3978f218..71a20e6a 100644 --- a/Server/application/command/WechatFriendCommand.php +++ b/Server/application/command/WechatFriendCommand.php @@ -38,6 +38,7 @@ class WechatFriendCommand extends Command // 检查队列是否已经在运行 $queueLockKey = "queue_lock:{$this->queueName}:{$isDel}"; + Cache::rm($queueLockKey); if (Cache::get($queueLockKey)) { $output->writeln("队列 {$this->queueName} 已经在运行中,删除状态:{$isDel},跳过执行"); Log::warning("队列 {$this->queueName} 已经在运行中,删除状态:{$isDel},跳过执行"); diff --git a/Server/application/cunkebao/controller/plan/PlanSceneV1Controller.php b/Server/application/cunkebao/controller/plan/PlanSceneV1Controller.php index c4cd7e08..c71643ee 100644 --- a/Server/application/cunkebao/controller/plan/PlanSceneV1Controller.php +++ b/Server/application/cunkebao/controller/plan/PlanSceneV1Controller.php @@ -458,7 +458,7 @@ class PlanSceneV1Controller extends BaseController $total = $query->count(); $list = $query->page($page, $pageSize)->order('id', 'desc')->select(); foreach ($list as &$item) { - unset($item['fail_reason'],$item['processed_wechat_ids'],$item['task_id']); + unset($item['processed_wechat_ids'],$item['task_id']); $userinfo = Db::table('s2_wechat_friend') ->field('alias,wechatId,nickname,avatar') ->where('alias|wechatId|phone|conRemark','like','%'.$item['phone'].'%')