Skip to content

Let's use AI to Earn!

feat: 打包修复

yikaJasonMic2bbae8766901
diff --git a/electron/main/plat/PlatformBase.ts b/electron/main/plat/PlatformBase.ts
index 4461f350..e786b9c1 100644
--- a/electron/main/plat/PlatformBase.ts
+++ b/electron/main/plat/PlatformBase.ts
@@ -1,7 +1,7 @@
/*
* @Author: nevin
* @Date: 2025-02-07 09:48:29
- * @LastEditTime: 2025-02-19 22:03:27
+ * @LastEditTime: 2025-03-24 15:14:58
* @LastEditors: nevin
* @Description: 平台主类
*/
@@ -107,6 +107,21 @@ export abstract class PlatformBase {
pageInfo: ResponsePageInfo;
}>;
+ /**
+ * 获取他人作品的评论列表
+ * @param account
+ * @param dataId
+ * @param pcursor
+ */
+ abstract getCreatorCommentListByOther(
+ account: AccountModel,
+ dataId: string,
+ pcursor?: string,
+ ): Promise<{
+ list: CommentData[];
+ pageInfo: ResponsePageInfo;
+ }>;
+
/**
* 获取评论列表
* @param account
diff --git a/electron/main/plat/index.ts b/electron/main/plat/index.ts
index 37dd3304..2e77f608 100644
--- a/electron/main/plat/index.ts
+++ b/electron/main/plat/index.ts
@@ -1,7 +1,7 @@
/*
* @Author: nevin
* @Date: 2025-02-06 15:57:02
- * @LastEditTime: 2025-02-19 22:04:13
+ * @LastEditTime: 2025-03-24 15:15:04
* @LastEditors: nevin
* @Description:
*/
@@ -184,9 +184,12 @@ class PlatController {
pcursor?: string,
) {
const platform = this.platforms.get(account.type)!;
- return await platform.getCreatorCommentListByOther(account, dataId, pcursor);
+ return await platform.getCreatorCommentListByOther(
+ account,
+ dataId,
+ pcursor,
+ );
}
-
/**
* 创建评论
diff --git a/electron/main/plat/platforms/Kwai/index.ts b/electron/main/plat/platforms/Kwai/index.ts
index d8c46b1f..999767e3 100644
--- a/electron/main/plat/platforms/Kwai/index.ts
+++ b/electron/main/plat/platforms/Kwai/index.ts
@@ -1,7 +1,7 @@
/*
* @Author: nevin
* @Date: 2025-02-19 17:54:53
- * @LastEditTime: 2025-03-23 23:43:23
+ * @LastEditTime: 2025-03-24 15:16:34
* @LastEditors: nevin
* @Description:
*/
@@ -254,6 +254,21 @@ export class Kwai extends PlatformBase {
};
}
+ async getCreatorCommentListByOther(
+ account: AccountModel,
+ dataId: string,
+ pcursor?: string,
+ ) {
+ return {
+ list: [],
+ pageInfo: {
+ count: 0,
+ pcursor: '',
+ hasMore: false,
+ },
+ };
+ }
+
async createComment(
account: AccountModel,
dataId: string, // 作品ID
diff --git a/electron/main/plat/platforms/douyin/index.ts b/electron/main/plat/platforms/douyin/index.ts
index c61472b3..951f6606 100644
--- a/electron/main/plat/platforms/douyin/index.ts
+++ b/electron/main/plat/platforms/douyin/index.ts
@@ -1,7 +1,7 @@
/*
* @Author: nevin
* @Date: 2025-02-08 11:40:45
- * @LastEditTime: 2025-03-23 23:42:31
+ * @LastEditTime: 2025-03-24 15:13:56
* @LastEditors: nevin
* @Description: 抖音
*/
@@ -246,23 +246,28 @@ export class Douyin extends PlatformBase {
};
}
-
async getCreatorCommentListByOther(
account: AccountModel,
dataId: string,
pcursor?: string,
) {
const cookie: CookiesType = JSON.parse(account.loginCookie);
- const res: any = await douyinService.getCreatorCommentListByOther(cookie, dataId, {
- count: pcursor ? 20 : undefined,
- cursor: pcursor || undefined,
- });
+ const res: any = await douyinService.getCreatorCommentListByOther(
+ cookie,
+ dataId,
+ {
+ count: pcursor ? 20 : undefined,
+ cursor: pcursor || undefined,
+ },
+ );
const list: any[] = [];
- console.log('------ douyinService.getCreatorCommentListByOther', res.data.comments);
+ console.log(
+ '------ douyinService.getCreatorCommentListByOther',
+ res.data.comments,
+ );
for (const v of res.data.comments) {
-
list.push({
userId: v.user.uid,
dataId: v.aweme_id,
@@ -272,7 +277,7 @@ export class Douyin extends PlatformBase {
nikeName: v.user.nickname,
headUrl: v.user.avatar_thumb.uri,
data: v,
- subCommentList: []
+ subCommentList: [],
});
}
diff --git a/electron/main/plat/platforms/wxSph/index.ts b/electron/main/plat/platforms/wxSph/index.ts
index f8d2fa91..b96577bb 100644
--- a/electron/main/plat/platforms/wxSph/index.ts
+++ b/electron/main/plat/platforms/wxSph/index.ts
@@ -1,7 +1,7 @@
/*
* @Author: nevin
* @Date: 2025-02-08 11:40:45
- * @LastEditTime: 2025-03-23 23:45:42
+ * @LastEditTime: 2025-03-24 15:16:52
* @LastEditors: nevin
* @Description: 微信视频号
*/
@@ -218,6 +218,21 @@ export class WxSph extends PlatformBase {
};
}
+ async getCreatorCommentListByOther(
+ account: AccountModel,
+ dataId: string,
+ pcursor?: string,
+ ) {
+ return {
+ list: [],
+ pageInfo: {
+ count: 0,
+ pcursor: '',
+ hasMore: false,
+ },
+ };
+ }
+
async createComment(
account: AccountModel,
dataId: string, // 作品ID
diff --git a/electron/main/plat/platforms/xhs/index.ts b/electron/main/plat/platforms/xhs/index.ts
index 01cd9b00..21ba844f 100644
--- a/electron/main/plat/platforms/xhs/index.ts
+++ b/electron/main/plat/platforms/xhs/index.ts
@@ -1,7 +1,7 @@
/*
* @Author: nevin
* @Date: 2025-02-08 11:40:45
- * @LastEditTime: 2025-03-24 00:03:22
+ * @LastEditTime: 2025-03-24 15:17:03
* @LastEditors: nevin
* @Description: 小红书
*/
@@ -227,6 +227,21 @@ export class Xhs extends PlatformBase {
};
}
+ async getCreatorCommentListByOther(
+ account: AccountModel,
+ dataId: string,
+ pcursor?: string,
+ ) {
+ return {
+ list: [],
+ pageInfo: {
+ count: 0,
+ pcursor: '',
+ hasMore: false,
+ },
+ };
+ }
+
async createComment(
account: AccountModel,
dataId: string, // 作品ID