Skip to content

Let's use AI to Earn!

收藏报错的问题

DESKTOP-EMF2SH4\Administrator620fb5ab5102
diff --git a/electron/main/plat/platforms/xhs/index.ts b/electron/main/plat/platforms/xhs/index.ts
index 0946d06b..68ec73fa 100644
--- a/electron/main/plat/platforms/xhs/index.ts
+++ b/electron/main/plat/platforms/xhs/index.ts
@@ -409,7 +409,7 @@ export class Xhs extends PlatformBase {
) {
const cookie: CookiesType = JSON.parse(account.loginCookie);
const ret = await xiaohongshuService.commentPost(cookie, dataId, content);
- console.log('------ createCommentByOther xhs ---', ret);
+ // console.log('------ createCommentByOther xhs ---', ret);
return ret;
}
@@ -421,7 +421,7 @@ export class Xhs extends PlatformBase {
const cookie: CookiesType = JSON.parse(account.loginCookie);
const res = await xiaohongshuService.likeNote(cookie, dataId);
- console.log('------ res', res);
+ // console.log('------ res', res);
return !!res;
}
@@ -429,14 +429,14 @@ export class Xhs extends PlatformBase {
async shoucangDyOther(
account: AccountModel,
dataId: string, // 作品ID
- ): Promise<boolean> {
- console.log('------ dianzanDyOther5555', dataId);
+ ): Promise<any> {
+ console.log('------ shoucangDyOther5555', dataId);
const cookie: CookiesType = JSON.parse(account.loginCookie);
const res = await xiaohongshuService.shoucangNote(cookie, dataId);
- console.log('------ res', res);
+ // console.log('------ res', res);
- return !!res;
+ return res;
}
async replyCommentByOther(
diff --git a/src/views/replyother/replyother.tsx b/src/views/replyother/replyother.tsx
index dff68aa2..63dd75cb 100644
--- a/src/views/replyother/replyother.tsx
+++ b/src/views/replyother/replyother.tsx
@@ -737,6 +737,7 @@ export default function Page() {
}
const res = await icpShoucangDyOther(activeAccountId, post.dataId);
+ console.log('------ collectPost res', res);
if (res.status_code == 0 || res.data?.code == 0) {
message.success('收藏成功');
// 更新收藏状态