队列优化

This commit is contained in:
Ghost
2025-04-01 09:26:06 +08:00
parent dfe73f9a22
commit 23fcc47d55
10 changed files with 274 additions and 55 deletions

View File

@@ -24,7 +24,7 @@ class WechatFriendCommand extends Command
try {
// 初始页码
$pageIndex = 0;
$pageSize = 100; // 每页获取100条记录
$pageSize = 1000; // 每页获取1000条记录
// 将第一页任务添加到队列
$this->addToQueue($pageIndex, $pageSize);