Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
快手平台测试完成
daoyiandf232dad4b8c
diff --git a/electron/main/interaction/service.ts b/electron/main/interaction/service.tsindex e5ff8250..cb6a3539 100644--- a/electron/main/interaction/service.ts+++ b/electron/main/interaction/service.ts@@ -113,6 +113,10 @@ export class InteractionService {worksList: WorkData[],option: {commentContent: string; // 评论内容+ platform?: string; // 平台ID+ likeProb?: any; // 点赞概率+ collectProb?: any; // 收藏概率+ commentProb?: any; // 评论概率},scheduleEvent: (data: {tag: AutorWorksInteractionScheduleEvent;@@ -121,6 +125,11 @@ export class InteractionService {error?: any;}) => void,) {+ // console.log('------ autorInteraction', option);++ // return;++const userInfo = getUserInfo();// 设置缓存@@ -178,6 +187,7 @@ export class InteractionService {account,works.dataId,option.commentContent,+ works.author?.id);// 错误处理@@ -221,6 +231,8 @@ export class InteractionService {// ----- 3-收藏作品 -----let isCollect: 0 | 1 = 0;++ if (option.platform === 'KWAI') {try {const isCollectRes = await platController.shoucangDyOther(account,@@ -237,6 +249,7 @@ export class InteractionService {},});}+ }// 创建互动记录this.createInteractionRecord(diff --git a/src/icp/replyother.ts b/src/icp/replyother.tsindex 984fbc3d..0121c2b1 100644--- a/src/icp/replyother.ts+++ b/src/icp/replyother.ts@@ -207,9 +207,7 @@ export async function icpInteractionOneData(export async function icpCreateInteractionOneKey(accountId: number,worksList: WorkData[],- option: {- commentContent: string; // 评论内容- },+ option: any) {const res: boolean = await window.ipcRenderer.invoke('ICP_INTERACTION_ONE_KEY',diff --git a/src/views/finance/index.tsx b/src/views/finance/index.tsxindex 531bd9de..62ab964f 100644--- a/src/views/finance/index.tsx+++ b/src/views/finance/index.tsx@@ -25,7 +25,8 @@ export default function Page() {const getBalance = async () => {try {const res = await financeApi.getUserWalletInfo();- setBalance(res.balance || 0);+ // console.log('getBalance','res',res);+ setBalance(res.balance);} catch (error) {console.error('获取余额失败:', error);}diff --git a/src/views/replyother/replyother.tsx b/src/views/replyother/replyother.tsxindex ca4a6362..c3ec7263 100644--- a/src/views/replyother/replyother.tsx+++ b/src/views/replyother/replyother.tsx@@ -290,8 +290,9 @@ export default function Page() {// 调用icpCreateInteractionOneKey函数const res = await icpCreateInteractionOneKey(activeAccountId, selectedPostData, {-commentContent: '不错啊!',+ platform: activeAccountType,+ ...values});console.log('------ res', res);