Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
fix: 微调
gaoSir7e507a93d3c0
diff --git a/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.module.scss b/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.module.scssindex 96875888..b1bc9180 100644--- a/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.module.scss+++ b/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.module.scss@@ -182,7 +182,7 @@.userManageDeleteHitModal-users {display: grid;gap: 15px;- grid-template-columns: repeat(6, 1fr);+ grid-template-columns: repeat(7, 1fr);margin-top: 10px;li {display: flex;diff --git a/src/app/config/platConfig.ts b/src/app/config/platConfig.tsindex e4737a45..3238a0f8 100644--- a/src/app/config/platConfig.ts+++ b/src/app/config/platConfig.ts@@ -143,7 +143,7 @@ export const AccountPlatInfoMap = new Map<PlatType, IAccountPlatInfo>([name: "Twitter",icon: twitterSvg.src,url: "https://x.com/",- pubTypes: new Set([PubType.VIDEO, PubType.ImageText]),+ pubTypes: new Set([PubType.VIDEO, PubType.ImageText, PubType.Article]),commonPubParamsConfig: {titleMax: 16,topicMax: 10,@@ -151,7 +151,6 @@ export const AccountPlatInfoMap = new Map<PlatType, IAccountPlatInfo>([themeColor: "blue",},],-[PlatType.Facebook,{@@ -172,7 +171,7 @@ export const AccountPlatInfoMap = new Map<PlatType, IAccountPlatInfo>([name: "微信公众号",icon: wxGzhSvg.src,url: "https://mp.weixin.qq.com/",- pubTypes: new Set([PubType.VIDEO, PubType.ImageText]),+ pubTypes: new Set([PubType.VIDEO, PubType.ImageText, PubType.Article]),commonPubParamsConfig: {titleMax: 16,topicMax: 10,@@ -200,7 +199,7 @@ export const AccountPlatInfoMap = new Map<PlatType, IAccountPlatInfo>([name: "Threads",icon: threadsSvg.src,url: "https://www.threads.net/",- pubTypes: new Set([PubType.VIDEO, PubType.ImageText]),+ pubTypes: new Set([PubType.VIDEO, PubType.ImageText, PubType.Article]),commonPubParamsConfig: {titleMax: 16,topicMax: 10,diff --git a/src/app/config/publishConfig.ts b/src/app/config/publishConfig.tsindex e7d3c4b1..bba76ca7 100644--- a/src/app/config/publishConfig.ts+++ b/src/app/config/publishConfig.ts@@ -2,4 +2,5 @@export enum PubType {VIDEO = "video", // 视频ImageText = "article", // 图文+ Article = "article2", // 纯文字}diff --git a/src/components/PublishDialog/compoents/PlatParamsSetting/plats/FacebookParams.tsx b/src/components/PublishDialog/compoents/PlatParamsSetting/plats/FacebookParams.tsxindex 49e2f8b5..76705a18 100644--- a/src/components/PublishDialog/compoents/PlatParamsSetting/plats/FacebookParams.tsx+++ b/src/components/PublishDialog/compoents/PlatParamsSetting/plats/FacebookParams.tsx@@ -66,7 +66,7 @@ const FacebookParams = memo();}}>- <Radio value="video">Post</Radio>+ <Radio value="post">Post</Radio><Radio value="reel">Reel</Radio><Radio value="story">Story</Radio></Radio.Group>diff --git a/src/components/PublishDialog/compoents/PlatParamsSetting/plats/InstagramParams.tsx b/src/components/PublishDialog/compoents/PlatParamsSetting/plats/InstagramParams.tsxindex e96c54bf..84f26dff 100644--- a/src/components/PublishDialog/compoents/PlatParamsSetting/plats/InstagramParams.tsx+++ b/src/components/PublishDialog/compoents/PlatParamsSetting/plats/InstagramParams.tsx@@ -79,7 +79,7 @@ const InstagramParams = memo();}}>- <Radio value="video">Post</Radio>+ <Radio value="post">Post</Radio><Radio value="reel">Reel</Radio><Radio value="story">Story</Radio></Radio.Group>diff --git a/src/components/PublishDialog/hooks/usePubParamsVerify.tsx b/src/components/PublishDialog/hooks/usePubParamsVerify.tsxindex 54fd31ae..4e98bd1c 100644--- a/src/components/PublishDialog/hooks/usePubParamsVerify.tsx+++ b/src/components/PublishDialog/hooks/usePubParamsVerify.tsx@@ -66,7 +66,6 @@ export default function usePubParamsVerify(data: PubItem[]) {if (!v.params.title) {return setErrorMsg(t("validation.titleRequired"));}- console.log(topicsAll);// 强制需要话题if (topicsAll.length === 0) {return setErrorMsg(t("validation.topicRequired"));