Skip to content

Let's use AI to Earn!

feat: 1. 抖音频繁掉线问题解决。 2. 删除抖音多余的提示。

gaoSir4921ee8470f5
diff --git a/electron/plat/douyin/index.ts b/electron/plat/douyin/index.ts
index 71ec4e41..8fceb070 100644
--- a/electron/plat/douyin/index.ts
+++ b/electron/plat/douyin/index.ts
@@ -558,8 +558,7 @@ export class DouyinService {
callback(60, '视频上传完成');
// 发布视频参数
- const publishVideoParams =
- this.getPublishPublicParamsV2(platformSetting);
+ const publishVideoParams = this.getPublishPublicParams(platformSetting);
callback(65, '参数获取完成');
// 拼接视频封面内容
@@ -591,23 +590,23 @@ export class DouyinService {
// 'bd-ticket-guard-web-sign-type': '1',
// 'bd-ticket-guard-web-version': '2',
};
- let publishResult = await requestNet({
- url: this.publishUrlV2,
- method: 'POST',
- headers,
- body: publishVideoParams,
- proxy: platformSetting.proxyIp,
- });
- // let publishResult = await this.makePublishRequest(
- // this.publishUrl,
- // {
- // url: this.publishUrl,
- // method: 'POST',
- // headers,
- // data: publishVideoParams,
- // },
- // platformSetting.proxyIp,
- // );
+ // let publishResult = await requestNet({
+ // url: this.publishUrlV2,
+ // method: 'POST',
+ // headers,
+ // body: publishVideoParams,
+ // proxy: platformSetting.proxyIp,
+ // });
+ let publishResult = await this.makePublishRequest(
+ this.publishUrl,
+ {
+ url: this.publishUrl,
+ method: 'POST',
+ headers,
+ data: publishVideoParams,
+ },
+ platformSetting.proxyIp,
+ );
callback(100, '发布完成');
console.log('publishResult:', publishResult);
@@ -1764,6 +1763,11 @@ export class DouyinService {
// 整合发布参数
const publishParams = {
hot_sentence: platformSetting.hot_sentence,
+ user_declare_info: platformSetting.userDeclare
+ ? {
+ choose_value: platformSetting.userDeclare,
+ }
+ : {},
item_title: platformSetting['title'] ?? '',
text,
text_extra: textExtra,
diff --git a/src/views/account/comment.ts b/src/views/account/comment.ts
index 4194288c..a3d2ba7e 100644
--- a/src/views/account/comment.ts
+++ b/src/views/account/comment.ts
@@ -113,11 +113,11 @@ export const AccountPlatInfoMap = new Map<AccountType, IAccountPlatInfo>([
imagesMax: 35,
},
},
- tips: {
- account: '首次登录的抖音号可能会频繁掉线,通常将在重登2-3次后趋于稳定',
- publish:
- '首次登录的抖音账号请先在账户单独完成一次内容发布后再做一键发布',
- },
+ // tips: {
+ // account: '首次登录的抖音号可能会频繁掉线,通常将在重登2-3次后趋于稳定',
+ // publish:
+ // '首次登录的抖音账号请先在账户单独完成一次内容发布后再做一键发布',
+ // },
},
],
[