代码优化
This commit is contained in:
@@ -24,8 +24,8 @@ class WechatFriendCommand extends Command
|
||||
|
||||
try {
|
||||
// 从缓存获取初始页码和上次处理的好友ID,缓存10分钟有效
|
||||
$pageIndex = Cache::get('friendsPage', 0);
|
||||
$preFriendId = Cache::get('preFriendId', '');
|
||||
$pageIndex = Cache::get('friendsPage', 21);
|
||||
$preFriendId = Cache::get('preFriendId', 19426090);
|
||||
|
||||
$output->writeln('从缓存获取页码:' . $pageIndex . ',上次处理的好友ID:' . ($preFriendId ?: '无'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user