Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
feat: 补充评论列表的用户ID
yikaJasonMic940c1eb53db2
diff --git a/electron/main/plat/plat.type.ts b/electron/main/plat/plat.type.tsindex 63b1b342..ad8d3103 100644--- a/electron/main/plat/plat.type.ts+++ b/electron/main/plat/plat.type.ts@@ -1,7 +1,7 @@/** @Author: nevin* @Date: 2025-02-07 09:48:29- * @LastEditTime: 2025-03-21 22:57:17+ * @LastEditTime: 2025-03-23 23:41:38* @LastEditors: nevin* @Description:*/@@ -62,6 +62,7 @@ export type WorkData = {// 评论export type CommentData = {+ userId: string;dataId: string;commentId: string;parentCommentId?: string; // 上级评论IDdiff --git a/electron/main/plat/platforms/Kwai/index.ts b/electron/main/plat/platforms/Kwai/index.tsindex d5d13f37..d8c46b1f 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-21 23:25:40+ * @LastEditTime: 2025-03-23 23:43:23* @LastEditors: nevin* @Description:*/@@ -217,6 +217,7 @@ export class Kwai extends PlatformBase {for (const v1 of subRes.data.data.list) {subList.push({+ userId: v1.authorId + '',dataId: v1.photoId + '',commentId: v1.commentId + '',content: v1.content,@@ -230,6 +231,7 @@ export class Kwai extends PlatformBase {}list.push({+ userId: v.authorId + '',dataId: v.photoId + '',commentId: v.commentId + '',parentCommentId: undefined,diff --git a/electron/main/plat/platforms/douyin/index.ts b/electron/main/plat/platforms/douyin/index.tsindex 310f5a96..16b34d86 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 22:45:39+ * @LastEditTime: 2025-03-23 23:42:31* @LastEditors: nevin* @Description: 抖音*/@@ -209,6 +209,7 @@ export class Douyin extends PlatformBase {if (res2.status === 200 && res2.data.status_code === 0) {for (const element of res2.data.comment_info_list) {subList.push({+ userId: element.user_info.user_id,dataId: dataId,commentId: element.comment_id,content: element.text,@@ -223,6 +224,7 @@ export class Douyin extends PlatformBase {}list.push({+ userId: v.user_info.user_id,dataId: dataId,commentId: v.comment_id,content: v.text,diff --git a/electron/main/plat/platforms/wxSph/index.ts b/electron/main/plat/platforms/wxSph/index.tsindex f3febfc7..f8d2fa91 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-21 23:25:23+ * @LastEditTime: 2025-03-23 23:45:42* @LastEditors: nevin* @Description: 微信视频号*/@@ -181,6 +181,7 @@ export class WxSph extends PlatformBase {const subDataList: CommentData[] = [];for (const subItem of item.levelTwoComment) {subDataList.push({+ userId: subItem.commentNickname,dataId: subItem.commentId,commentId: subItem.commentId,parentCommentId: item.commentId,@@ -193,6 +194,7 @@ export class WxSph extends PlatformBase {}dataList.push({+ userId: item.commentNickname,dataId: item.commentId,commentId: item.commentId,content: item.commentContent,diff --git a/electron/main/plat/platforms/xhs/index.ts b/electron/main/plat/platforms/xhs/index.tsindex 982455d2..01cd9b00 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-21 23:26:00+ * @LastEditTime: 2025-03-24 00:03:22* @LastEditors: nevin* @Description: 小红书*/@@ -192,6 +192,7 @@ export class Xhs extends PlatformBase {for (const sub of v.sub_comments) {subList.push({+ userId: sub.user_info.user_id,dataId: v.note_id,commentId: sub.id,parentCommentId: v.id,@@ -204,6 +205,7 @@ export class Xhs extends PlatformBase {}list.push({+ userId: v.user_info.user_id,dataId: v.note_id,commentId: v.id,parentCommentId: undefined,diff --git a/electron/plat/Kwai/kwai.type.ts b/electron/plat/Kwai/kwai.type.tsindex e6d3af39..8fd99b9d 100644--- a/electron/plat/Kwai/kwai.type.ts+++ b/electron/plat/Kwai/kwai.type.ts@@ -201,7 +201,7 @@ export interface GetCommentListResponse {message: string; // '成功';}-// 回复评论返回+// 获取子回复列表export interface GetSubCommentListResponse {result: number; // 1;currentTime: number; // 1741843273188;