Skip to content

Let's use AI to Earn!

style: 小红书评论列表日志

牛文政895c5f01339b
diff --git a/electron/main/reply/controller.ts b/electron/main/reply/controller.ts
index 48bb54ab..53b4f02d 100644
--- a/electron/main/reply/controller.ts
+++ b/electron/main/reply/controller.ts
@@ -134,7 +134,11 @@ export class ReplyController {
const account = await this.accountService.getAccountById(accountId);
if (!account) return null;
+ console.log('------ 评论列表 start ------');
+
const res = await platController.getCommentList(account, data, pcursor);
+ console.log('------ 评论列表 end ------', res);
+
return res;
}
diff --git a/electron/plat/xiaohongshu/index.ts b/electron/plat/xiaohongshu/index.ts
index 0af58ed3..bfdb3d38 100644
--- a/electron/plat/xiaohongshu/index.ts
+++ b/electron/plat/xiaohongshu/index.ts
@@ -14,6 +14,7 @@ import {
XiaohongshuApiResponse,
} from './xiaohongshu.type';
import { RetryWhile } from '../../../commont/utils';
+import { logger } from '../../global/log';
export type XSLPlatformSettingType = {
// 标题
@@ -1491,6 +1492,8 @@ export class XiaohongshuService {
},
cursor?: number,
) {
+ logger.log('小红书 ------ getCommentList ---- start');
+
const url = `/api/sns/web/v2/comment/page?note_id=${note.id}&cursor=${cursor || ''}&top_comment_id=&image_formats=jpg,webp,avif&xsec_token=${note.xsec_token}`;
const reverseRes: any = await this.getReverseResult({
url,
@@ -1511,6 +1514,8 @@ export class XiaohongshuService {
method: 'GET',
});
+ logger.log('小红书 ------ getCommentList ---- end', res);
+
return res;
}