代码优化

This commit is contained in:
wong
2025-07-11 17:45:49 +08:00
parent ce4beab201
commit 3c39b1e2bd

View File

@@ -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) {