Skip to content

Let's use AI to Earn!

fix: 修复延迟

yikaJasonMic10ca0caaa4fb
diff --git a/electron/main/interaction/service.ts b/electron/main/interaction/service.ts
index e6c9000e..cd6956fc 100644
--- a/electron/main/interaction/service.ts
+++ b/electron/main/interaction/service.ts
@@ -151,9 +151,11 @@ export class InteractionService {
});
// 1. 循环AI回复评论
+ let i = 0;
for (const works of worksList) {
console.log('------ 开始处理作品:', works);
- await sleep(10);
+ if (i > 0) await sleep(10 * 1000);
+ i++;
const oldRecord = await this.getInteractionRecord(
userInfo.id,
account,
diff --git a/electron/main/reply/service.ts b/electron/main/reply/service.ts
index 94b5eebe..c8684da8 100644
--- a/electron/main/reply/service.ts
+++ b/electron/main/reply/service.ts
@@ -241,7 +241,7 @@ export class ReplyService {
});
// 延迟
- await sleep(10);
+ await sleep(10 * 1000);
}
scheduleEvent({