Skip to content

Let's use AI to Earn!

抖音无法评论问题

daoyiana304111bc807
diff --git a/electron/main/plat/platforms/douyin/index.ts b/electron/main/plat/platforms/douyin/index.ts
index 461138c8..e3752368 100644
--- a/electron/main/plat/platforms/douyin/index.ts
+++ b/electron/main/plat/platforms/douyin/index.ts
@@ -400,13 +400,21 @@ export class Douyin extends PlatformBase {
content: string,
) {
const cookie: CookiesType = JSON.parse(account.loginCookie);
+ console.log('dataIddataId????:',dataId,content)
const res = await douyinService.creatorCommentReplyOther(cookie, {
aweme_id: dataId,
text: content,
one_level_comment_rank: -1,
+
+ // aweme_id: '7498682394024430907',
+ // comment_send_celltime: 46567,
+ // comment_video_celltime: 8969,
+ // one_level_comment_rank: -1,
+ // paste_edit_method: 'non_paste',
+ // text: '调',
});
- console.log('------ res', res);
+ console.log('-- 评论 ---- res', res);
return res;
}
diff --git a/electron/plat/douyin/index.ts b/electron/plat/douyin/index.ts
index 161fd07e..7942dc93 100644
--- a/electron/plat/douyin/index.ts
+++ b/electron/plat/douyin/index.ts
@@ -1932,7 +1932,7 @@ export class DouyinService {
* 发布专用请求方法
*/
private async makePublishRequest(
- url: string,
+ url: string,
options: any,
proxy: string,
): Promise<any> {
@@ -1956,7 +1956,7 @@ export class DouyinService {
...options.headers,
},
body: formData,
- proxy,
+ // proxy,
});
const responseText = await response.data;
@@ -2427,15 +2427,18 @@ export class DouyinService {
// 回复其他人的评论
async creatorCommentReplyOther(cookie: Electron.Cookie[], data: any) {
+ console.log('wentipaicha1')
const thisUri = `https://www.douyin.com/aweme/v1/web/comment/publish/?${jsonToQueryString(
{
aid: '6383',
},
)}`;
+ console.log('wentipaicha2')
const cookieString = CommonUtils.convertCookieToJson(cookie);
+ console.log('wentipaicha3')
const csrfToken = await this.getSecsdkCsrfToken(cookieString);
-
- const res = await this.makePublishRequest(
+ console.log('wentipaicha4')
+ const res = await this.postFormData(
thisUri,
{
method: 'POST',
@@ -2445,9 +2448,9 @@ export class DouyinService {
referer: `https://www.douyin.com/video/${data.aweme_id}`,
},
data: data,
- },
- '',
+ }
);
+ console.log('douyin index ------ res', res);
return res;
}
diff --git a/src/views/replyother/replyother.tsx b/src/views/replyother/replyother.tsx
index 76a59d69..ffb13ecb 100644
--- a/src/views/replyother/replyother.tsx
+++ b/src/views/replyother/replyother.tsx
@@ -1111,7 +1111,7 @@ export default function Page() {
: undefined,
}}
/>
- <span>{item.likeCount || 0}</span>
+ <span>{item.likeCount || ''}</span>
</Space>,
<Space
key="comment-list"
@@ -1442,7 +1442,7 @@ export default function Page() {
: undefined,
}}
/>
- <span>{item.likeCount || 0}</span>
+ <span>{item.likeCount || ''}</span>
</Space>,
<Space
key="comment-list"