From 3c39b1e2bdc316561d30eda2f94bbd89faa0d216 Mon Sep 17 00:00:00 2001 From: wong <106998207@qq.com> Date: Fri, 11 Jul 2025 17:45:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/application/command/SwitchFriendsCommand.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Server/application/command/SwitchFriendsCommand.php b/Server/application/command/SwitchFriendsCommand.php index 488e39a2..d7bf89ce 100644 --- a/Server/application/command/SwitchFriendsCommand.php +++ b/Server/application/command/SwitchFriendsCommand.php @@ -37,14 +37,7 @@ class SwitchFriendsCommand extends Command $output->writeln('开始执行好友切换任务...'); do { - //$friends = Cache::get($cacheKey, []); - - $friends = [ - ['time' => 1111,'accountId' => 6222,'friendId' => 21075650], - ['time' => 1111,'accountId' => 6222,'friendId' => 20112769], - ]; - - + $friends = Cache::get($cacheKey, []); $toSwitch = []; foreach ($friends as $friend) { if (isset($friend['time']) && $friend['time'] < $now) {