去除多余的日志输出

This commit is contained in:
wong
2025-12-23 09:52:08 +08:00
parent cc91552c36
commit 5e198d1021
12 changed files with 26 additions and 73 deletions

View File

@@ -24,7 +24,6 @@ class OwnMomentsCollectJob
// 如果任务执行成功后删除任务
if ($this->processOwnMomentsCollect($data, $job->attempts())) {
$job->delete();
Log::info('自己朋友圈采集任务执行成功');
} else {
if ($job->attempts() > 3) {
// 超过重试次数,删除任务
@@ -60,12 +59,9 @@ class OwnMomentsCollectJob
$onlineWechatAccounts = $this->getOnlineWechatAccounts();
if (empty($onlineWechatAccounts)) {
Log::info('没有在线微信账号,跳过朋友圈采集');
return true;
}
Log::info('找到 ' . count($onlineWechatAccounts) . ' 个在线微信账号,开始采集朋友圈');
// 获取API账号配置
$username = Env::get('api.username2', '');
$password = Env::get('api.password2', '');
@@ -91,8 +87,6 @@ class OwnMomentsCollectJob
$wechatAccountId = $account['id'];
$wechatId = $account['wechatId'];
Log::info("开始采集微信账号 {$wechatId} (ID: {$wechatAccountId}) 的朋友圈");
// 创建WebSocket控制器实例
$webSocket = new WebSocketController([
'userName' => $username,
@@ -110,7 +104,6 @@ class OwnMomentsCollectJob
$resultData = json_decode($result, true);
if (!empty($resultData) && $resultData['code'] == 200) {
$successCount++;
Log::info("微信账号 {$wechatId} 朋友圈采集成功");
} else {
$failCount++;
Log::warning("微信账号 {$wechatId} 朋友圈采集失败:" . ($resultData['msg'] ?? '未知错误'));