Skip to content

Let's use AI to Earn!

作品列表

DESKTOP-ZTS2NQJNAb0c4fa6d6601
diff --git a/electron/main/plat/platforms/douyin/index.ts b/electron/main/plat/platforms/douyin/index.ts
index 71b32d5f..c61472b3 100644
--- a/electron/main/plat/platforms/douyin/index.ts
+++ b/electron/main/plat/platforms/douyin/index.ts
@@ -253,55 +253,28 @@ export class Douyin extends PlatformBase {
pcursor?: string,
) {
const cookie: CookiesType = JSON.parse(account.loginCookie);
- const res = await douyinService.getCreatorCommentListByOther(cookie, dataId, {
+ const res: any = await douyinService.getCreatorCommentListByOther(cookie, dataId, {
count: pcursor ? 20 : undefined,
cursor: pcursor || undefined,
});
- const list: CommentData[] = [];
+ const list: any[] = [];
console.log('------ douyinService.getCreatorCommentListByOther', res.data.comments);
- // for (const v of res.data.comment_info_list) {
- // const subList: CommentData[] = [];
- // if (v.level === 1 && Number.parseInt(v.reply_count) > 0) {
- // const res2 = await douyinService.getCreatorCommentReplyList(
- // cookie,
- // v.comment_id,
- // {
- // cursor: 0 + '',
- // count: 20,
- // },
- // );
-
- // 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,
- // likeCount: Number.parseInt(element.digg_count),
- // nikeName: element.user_info.screen_name,
- // headUrl: element.user_info.avatar_url,
- // data: element,
- // subCommentList: [],
- // });
- // }
- // }
- // }
-
- // list.push({
- // userId: v.user_info.user_id,
- // dataId: dataId,
- // commentId: v.comment_id,
- // content: v.text,
- // likeCount: Number.parseInt(v.digg_count),
- // nikeName: v.user_info.screen_name,
- // headUrl: v.user_info.avatar_url,
- // data: v,
- // subCommentList: subList,
- // });
- // }
+ for (const v of res.data.comments) {
+
+ list.push({
+ userId: v.user.uid,
+ dataId: v.aweme_id,
+ commentId: v.cid,
+ content: v.text,
+ likeCount: Number.parseInt(v.digg_count),
+ nikeName: v.user.nickname,
+ headUrl: v.user.avatar_thumb.uri,
+ data: v,
+ subCommentList: []
+ });
+ }
return {
list,
diff --git a/electron/plat/douyin/index.ts b/electron/plat/douyin/index.ts
index 66176ac5..bec94e81 100644
--- a/electron/plat/douyin/index.ts
+++ b/electron/plat/douyin/index.ts
@@ -2321,59 +2321,28 @@ export class DouyinService {
count?: number;
},
) {
- const res = await requestNet<DouyinCreatorCommentListResponse>({
- url: CommonUtils.buildUrl(
- `https://www.douyin.com/aweme/v1/web/comment/list/`,
- {
- cursor: pageInfo.cursor,
- count: pageInfo.count,
+
+ // https://www-hj.douyin.com/aweme/v1/web/comment/list/?
+ // // aweme_id=7483006686274374962&
+ // // cursor=20&count=10&
+ // // a_bogus=mjsjDq7jDpAcFdFb8KEfC5Fl6g6ArTSyNeidWSaTyPY4T1UTpbPUNPb9GxwoA1vPFRBhhH-73VM%2FbDdbO0UwZo9pwmkvuKiRz02C9zmoMHZ3TTv2XNWsCvSELiPTUCsYY%2FA9i2RRXs0KId5WnH9iAp17u%2FvrmRfdMH-XV2TjE9um0ASjhx%2FIa5JBxhwqjD%3D%3D
+
+ let thisUri = `https://www.douyin.com/aweme/v1/web/comment/list/?${jsonToQueryString({
+ cursor: pageInfo.cursor || 1,
+ count: pageInfo.count || 10,
aweme_id: item_id,
- // device_platform: 'webapp',
- aid: 6383,
- // channel: 'channel_pc_web',
- // item_type: 0,
- // insert_ids: '',
- // whale_cut_token: '',
- // cut_version: 1,
- // rcFT: '',
- // update_version_code: 170400,
- // pc_client_type: 1,
- // pc_libra_divert: 'Windows',
- // support_h265: 1,
- // support_dash: 1,
- // version_code: 170400,
- // version_name: '17.4.0',
- // cookie_enabled: true,
- // screen_width: 2560,
- // screen_height: 1440,
- // browser_language: 'zh-CN',
- // browser_platform: 'Win32',
- // browser_name: 'Chrome',
- // browser_version: '134.0.0.0',
- // browser_online: true,
- // engine_name: 'Blink',
- // engine_version: '134.0.0.0',
- // os_name: 'Windows',
- // os_version: '10',
- // cpu_core_num: 6,
- // device_memory: 8,
- // platform: 'PC',
- // downlink: 1.45,
- // effective_type: '3g',
- // round_trip_time: 350,
- // webid: '7462760265944598025',
- // uifid: '5a0fbbb49c6c57acd77ca86d66dd2e8e2f1fcf7b3fa6b8a56e480f684bd08589f91733f27477dce40e099eb7d637f09445a7ad8892b1bf8acbb37840aafe36d735e7c5beb76859eb4beca27d1809fa0c5e3a6237a3035941e4f018b7a8d0bb5ae2fdd75341387e35816986e9747d52ef9467c7a82e12a9018904cb5a3f31a1a6e300702b83ee316dcf81a88042fe48160ce0e6c7d6ef3f5bd76799c5b6f98f15',
- // msToken: 'IiU0XpVi5HCA8CoIKsClI4ebuZ3-uzekTlljc8bdH_-mKm5XppBEpMKss_591g-lH9eI-Am1Hzae4NbwkokD0KgQqKBZXqxQKlOPb4n6p6kVe-yyj81KV7uYIc4HT5jZXMS5VKzgiAiYMLHBjHFclkPP2W8cyyOL-hwRKbPD5OzQp_qH07ouFQ==',
- // a_bogus: 'dX0fgqUEY2mfFdKGuOfg743UWS2/Nsuyz-idReZPHOOLT7lGmRPGpPSZbozcYEW5MWB0h937iVllYxdcKsXkZKrpwmhvS/7RsUI998so0qqpT0hDEqfNCwWT9JaT0cwL8CKbJARVUzmc2dA4D1r0UB-JH/Pn4mipQHaWdnUGT9tfgM49PrFxuOtDiXzx5OI41f==',
- // verifyFp: 'verify_m8mhezqw_4VakJnSY_T1HQ_4lSe_8ZFw_iK3fj7GWvctC',
- // fp: 'verify_m8mhezqw_4VakJnSY_T1HQ_4lSe_8ZFw_iK3fj7GWvctC',
- },
- ),
+ a_bogus: 'dX0fgqUEY2mfFdKGuOfg743UWS2/Nsuyz-idReZPHOOLT7lGmRPGpPSZbozcYEW5MWB0h937iVllYxdcKsXkZKrpwmhvS/7RsUI998so0qqpT0hDEqfNCwWT9JaT0cwL8CKbJARVUzmc2dA4D1r0UB-JH/Pn4mipQHaWdnUGT9tfgM49PrFxuOtDiXzx5OI41f==',
+ })}`
+
+ const res = await requestNet<DouyinHotDataResponse>({
+ url: thisUri,
headers: {
cookie: CookieToString(cookie),
},
method: 'GET',
});
+
+
console.log('------ getCreatorCommentListByOther', res);
return res;
}
diff --git a/electron/util/common.ts b/electron/util/common.ts
index 90a18b2c..2f14de9a 100644
--- a/electron/util/common.ts
+++ b/electron/util/common.ts
@@ -111,6 +111,7 @@ export class CommonUtils {
url.searchParams.append(key, params[key]);
}
});
+ // console.log('url:', url.toString());
return url.toString();
}
}
diff --git a/src/views/replyother/index.tsx b/src/views/replyother/index.tsx
index 9d683799..aa68e20b 100644
--- a/src/views/replyother/index.tsx
+++ b/src/views/replyother/index.tsx
@@ -44,7 +44,8 @@ export default function Page() {
* 获取评论列表
*/
async function getCommentList(dataId: string) {
- const res = await icpGetCommentListByOther(activeAccountId, '7478960244136086784');
+ // 7483006686274374962 7478960244136086784
+ const res = await icpGetCommentListByOther(activeAccountId, '7483006686274374962');
console.log('------ icpGetCommentList', res);
setCommentList(res.list);