Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
fix: 小红书作品列表补字段
牛文政b7eb7c37b9f5
diff --git a/electron/main/plat/platforms/xhs/index.ts b/electron/main/plat/platforms/xhs/index.tsindex 731737d4..45a2fb39 100644--- a/electron/main/plat/platforms/xhs/index.ts+++ b/electron/main/plat/platforms/xhs/index.ts@@ -159,9 +159,11 @@ export class Xhs extends PlatformBase {commentCount: v.comments_count,title: v.display_title,coverUrl: v.images_list[0]?.url || '',+ option: {+ xsec_token: v.xsec_token,+ },}));- console.log('------ getWorkList xhs ---', res.data);const count = res.data.data?.tags[0]?.notes_count || 0;const hasMore = count > pageSize * (pageNo + 1);return {diff --git a/electron/main/reply/service.ts b/electron/main/reply/service.tsindex c40bce70..cd6c84b6 100644--- a/electron/main/reply/service.ts+++ b/electron/main/reply/service.ts@@ -252,19 +252,18 @@ export class ReplyService {message?: string;}> {// 查看缓存,有的就不执行- if (GlobleCache.getCache(getCacheKey(account)))+ if (GlobleCache.getCache(getCacheKey(account))) {+ sysNotice('请勿重复执行', `该账户有正在执行的任务,任务ID:${autoRun.id}`);+return {status: 0,message: '该账户有正在执行的任务,请勿重复执行',};-- console.log('=====进入自动机评论回复任务=====');+ }// 创建任务执行记录const recordData = await this.autoRunService.createAutoRunRecord(autoRun);- console.log('=====recordData=====', recordData);-// 添加到队列this.replyQueue.add(() => {this.autorReplyComment(