定时同步所有好友朋友圈优化

This commit is contained in:
wong
2025-05-20 09:34:30 +08:00
parent 672b6ba89f
commit 9102ecbdff
4 changed files with 177 additions and 192 deletions

View File

@@ -51,7 +51,7 @@ class WechatMomentsCommand extends Command
$preMomentIdCacheKey = "preMomentId:{$jobId}";
// 从缓存获取初始页码和上次处理的朋友圈ID
$pageIndex = Cache::get($pageIndexCacheKey, 0);
$pageIndex = Cache::get($pageIndexCacheKey, 1);
$preMomentId = Cache::get($preMomentIdCacheKey, '');
$output->writeln("从缓存获取页码: {$pageIndex}, 上次处理的朋友圈ID: {$preMomentId}");