Skip to content

Let's use AI to Earn!

小红书数据测试结果就是少两天数据

daoyian85a6d328f25c
diff --git a/electron/main/plat/platforms/xhs/index.ts b/electron/main/plat/platforms/xhs/index.ts
index 6cd2d3ed..87b45569 100644
--- a/electron/main/plat/platforms/xhs/index.ts
+++ b/electron/main/plat/platforms/xhs/index.ts
@@ -120,6 +120,7 @@ export class Xhs extends PlatformBase {
if (!ret.success) throw new Error('获取三方平台数据失败');
for (const item of ret.data) {
res.push({
+ time: item.date,
fans: item.zhangfen,
read: item.bofang,
comment: item.pinglun,
diff --git a/electron/plat/xiaohongshu/index.ts b/electron/plat/xiaohongshu/index.ts
index c45d4683..773fd5b9 100644
--- a/electron/plat/xiaohongshu/index.ts
+++ b/electron/plat/xiaohongshu/index.ts
@@ -302,7 +302,7 @@ export class XiaohongshuService {
a1: cookie_a1,
});
- console.log('reverseRes', reverseRes);
+ // console.log('reverseRes', reverseRes);
const userInfo = await this.makeRequest(this.getDashboardUrl, {
method: 'GET',
@@ -324,7 +324,7 @@ export class XiaohongshuService {
// 处理30天的数据
const dataList = [];
const startTimestamp = new Date(startDate).getTime();
- const endTimestamp = new Date(endDate).getTime();
+ const endTimestamp = new Date(endDate).getTime()+1;
// 获取所有列表数据
const rise_fans_list = userInfo.data.thirty.rise_fans_list || [];
@@ -348,6 +348,7 @@ export class XiaohongshuService {
list.forEach((item: any) => {
const timestamp = item.date;
// 检查日期是否在范围内
+ // console.log('xhs', timestamp, endTimestamp)
if (timestamp >= startTimestamp && timestamp <= endTimestamp) {
if (!dateMap[timestamp]) {
dateMap[timestamp] = {
@@ -1144,7 +1145,6 @@ export class XiaohongshuService {
data: requestData,
a1: cookie_a1,
});
- console.log('reverseRes', reverseRes);
// 发起请求
const createRes = await this.makeRequest(this.postCreateVideoUrl, {
method: 'POST',