Skip to content

Let's use AI to Earn!

fix: 修复延迟

yikaJasonMic2a4b8ba419db
diff --git a/electron/main/interaction/service.ts b/electron/main/interaction/service.ts
index abcbff87..e6c9000e 100644
--- a/electron/main/interaction/service.ts
+++ b/electron/main/interaction/service.ts
@@ -153,7 +153,7 @@ export class InteractionService {
// 1. 循环AI回复评论
for (const works of worksList) {
console.log('------ 开始处理作品:', works);
- sleep(5);
+ await sleep(10);
const oldRecord = await this.getInteractionRecord(
userInfo.id,
account,
@@ -181,7 +181,6 @@ export class InteractionService {
option.commentContent = aiRes;
}
-
if (option.commentType && option.commentType == 'copy') {
const commentList = await platController.getCommentList(
account,
diff --git a/electron/main/reply/service.ts b/electron/main/reply/service.ts
index b65933fc..94b5eebe 100644
--- a/electron/main/reply/service.ts
+++ b/electron/main/reply/service.ts
@@ -241,7 +241,7 @@ export class ReplyService {
});
// 延迟
- sleep(5);
+ await sleep(10);
}
scheduleEvent({