Skip to content

Let's use AI to Earn!

小红书评论反馈提交

daoyian416edb35b5b8
diff --git a/electron/db/models/interactionRecord.ts b/electron/db/models/interactionRecord.ts
index edad1853..c4cd6d05 100644
--- a/electron/db/models/interactionRecord.ts
+++ b/electron/db/models/interactionRecord.ts
@@ -34,6 +34,9 @@ export class InteractionRecordModel extends TempModel {
@Column({ type: 'varchar', nullable: true, comment: '作品标题' })
worksTitle?: string;
+ @Column({ type: 'varchar', nullable: true, comment: '评论备注' })
+ commentRemark?: string;
+
@Column({ type: 'varchar', nullable: true, comment: '封面' })
worksCover?: string;
diff --git a/electron/main/interaction/service.ts b/electron/main/interaction/service.ts
index d05b1d03..6783587f 100644
--- a/electron/main/interaction/service.ts
+++ b/electron/main/interaction/service.ts
@@ -49,6 +49,7 @@ export class InteractionService {
worksTitle?: string;
worksCover?: string;
},
+ commentRemark: string,
commentContent: string,
isLike: 0 | 1,
isCollect: 0 | 1,
@@ -60,6 +61,7 @@ export class InteractionService {
worksId: works.worksId,
worksTitle: works.worksTitle,
worksCover: works.worksCover,
+ commentRemark,
commentContent,
isLike: isLike,
isCollect: isCollect,
@@ -157,7 +159,7 @@ export class InteractionService {
let i = 0;
for (const works of worksList) {
// console.log('------ 开始处理作品:', works);
- if (i > 0) await sleep(10 * 1000);
+ // if (i > 0) await sleep(10 * 1000);
i++;
const oldRecord = await this.getInteractionRecord(
userInfo.id,
@@ -357,6 +359,17 @@ export class InteractionService {
}
}
+ let commentRemark = '';
+ if (commentWorksRes.data) {
+ if (commentWorksRes.data.msg) {
+ commentRemark = commentWorksRes.data.msg;
+ } else {
+ commentRemark = commentWorksRes.data.toast;
+ }
+ } else {
+ commentRemark = '评论完成';
+ }
+
// 创建互动记录
this.createInteractionRecord(
userInfo.id,
@@ -366,6 +379,7 @@ export class InteractionService {
worksTitle: works.title,
worksCover: works.coverUrl,
},
+ commentRemark,
thisCommentContent,
isLike,
isCollect, // 收藏状态设为0
diff --git a/src/views/replyother/replyother.tsx b/src/views/replyother/replyother.tsx
index 3a41fb85..76a59d69 100644
--- a/src/views/replyother/replyother.tsx
+++ b/src/views/replyother/replyother.tsx
@@ -1752,6 +1752,11 @@ export default function Page() {
dataIndex: 'commentContent',
key: 'commentContent',
},
+ {
+ title: '评论反馈',
+ dataIndex: 'commentRemark',
+ key: 'commentRemark',
+ },
{
title: '点赞状态',
dataIndex: 'isLike',