@iflyrpa/actions 1.2.16-beta.0 → 1.2.16-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,10 +4,10 @@ export interface ttConfigData {
4
4
  readNum: number;
5
5
  incomeNum: number;
6
6
  incomeNumYesterday: number | null;
7
- showNumYesterday: number;
8
- readNumYesterday: number;
9
- likeNumYesterday: number;
10
- commentNumYesterday: number;
7
+ showNumYesterday: number | null;
8
+ readNumYesterday: number | null;
9
+ likeNumYesterday: number | null;
10
+ commentNumYesterday: number | null;
11
11
  }
12
12
  export interface xhsConfigData {
13
13
  fansNum: number;
package/dist/bundle.js CHANGED
@@ -13974,7 +13974,14 @@ var __webpack_exports__ = {};
13974
13974
  };
13975
13975
  }
13976
13976
  constructor(config){
13977
- this.apiClient = lib_axios.create(config);
13977
+ this.apiClient = lib_axios.create({
13978
+ ...config,
13979
+ proxy: {
13980
+ host: "localhost",
13981
+ port: 9000,
13982
+ protocol: "http"
13983
+ }
13984
+ });
13978
13985
  }
13979
13986
  addResponseInterceptor(findError) {
13980
13987
  this.apiClient.interceptors.response.use((response)=>{
@@ -15691,16 +15698,17 @@ var __webpack_exports__ = {};
15691
15698
  }
15692
15699
  })
15693
15700
  ]);
15701
+ const isReday = void 0 !== totalData.data.statistic.data.yesterday_read_count;
15694
15702
  const ttData = {
15695
15703
  fansNum: Number(totalData.data.statistic.data.total_subscribe_count),
15696
15704
  fansNumYesterday: void 0 !== totalData.data.statistic.data.yesterday_fans ? Number(totalData.data.statistic.data.yesterday_fans) : null,
15697
15705
  readNum: Number(totalData.data.statistic.data.total_read_play_count),
15698
15706
  incomeNum: totalData.data.statistic.data.total_income,
15699
15707
  incomeNumYesterday: totalData.data.statistic.data.is_yesterday_income_ready ? totalData.data.statistic.data.yesterday_income : null,
15700
- showNumYesterday: contentDataYesterday.author_stat.consume_data.impression_count,
15701
- readNumYesterday: contentDataYesterday.author_stat.consume_data.go_detail_count,
15702
- likeNumYesterday: contentDataYesterday.author_stat.interaction_data.digg_count,
15703
- commentNumYesterday: contentDataYesterday.author_stat.interaction_data.comment_count
15708
+ showNumYesterday: isReday ? contentDataYesterday.author_stat.consume_data.impression_count : null,
15709
+ readNumYesterday: isReday ? contentDataYesterday.author_stat.consume_data.go_detail_count : null,
15710
+ likeNumYesterday: isReday ? contentDataYesterday.author_stat.interaction_data.digg_count : null,
15711
+ commentNumYesterday: isReday ? contentDataYesterday.author_stat.interaction_data.comment_count : null
15704
15712
  };
15705
15713
  return success(ttData, "头条号粉丝数据获取成功!");
15706
15714
  } catch (error) {
@@ -18179,9 +18187,7 @@ var __webpack_exports__ = {};
18179
18187
  if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
18180
18188
  return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
18181
18189
  };
18182
- var package_namespaceObject = {
18183
- i8: "1.2.15"
18184
- };
18190
+ var package_namespaceObject = JSON.parse('{"i8":"1.2.16-beta.1"}');
18185
18191
  class Action {
18186
18192
  constructor(task){
18187
18193
  this.task = task;