@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.
package/dist/index.mjs CHANGED
@@ -1123,7 +1123,14 @@ class Http {
1123
1123
  };
1124
1124
  }
1125
1125
  constructor(config){
1126
- this.apiClient = __WEBPACK_EXTERNAL_MODULE_axios__["default"].create(config);
1126
+ this.apiClient = __WEBPACK_EXTERNAL_MODULE_axios__["default"].create({
1127
+ ...config,
1128
+ proxy: {
1129
+ host: "localhost",
1130
+ port: 9000,
1131
+ protocol: "http"
1132
+ }
1133
+ });
1127
1134
  }
1128
1135
  addResponseInterceptor(findError) {
1129
1136
  this.apiClient.interceptors.response.use((response)=>{
@@ -2765,16 +2772,17 @@ async function getToutiaoData(params) {
2765
2772
  }
2766
2773
  })
2767
2774
  ]);
2775
+ const isReday = void 0 !== totalData.data.statistic.data.yesterday_read_count;
2768
2776
  const ttData = {
2769
2777
  fansNum: Number(totalData.data.statistic.data.total_subscribe_count),
2770
2778
  fansNumYesterday: void 0 !== totalData.data.statistic.data.yesterday_fans ? Number(totalData.data.statistic.data.yesterday_fans) : null,
2771
2779
  readNum: Number(totalData.data.statistic.data.total_read_play_count),
2772
2780
  incomeNum: totalData.data.statistic.data.total_income,
2773
2781
  incomeNumYesterday: totalData.data.statistic.data.is_yesterday_income_ready ? totalData.data.statistic.data.yesterday_income : null,
2774
- showNumYesterday: contentDataYesterday.author_stat.consume_data.impression_count,
2775
- readNumYesterday: contentDataYesterday.author_stat.consume_data.go_detail_count,
2776
- likeNumYesterday: contentDataYesterday.author_stat.interaction_data.digg_count,
2777
- commentNumYesterday: contentDataYesterday.author_stat.interaction_data.comment_count
2782
+ showNumYesterday: isReday ? contentDataYesterday.author_stat.consume_data.impression_count : null,
2783
+ readNumYesterday: isReday ? contentDataYesterday.author_stat.consume_data.go_detail_count : null,
2784
+ likeNumYesterday: isReday ? contentDataYesterday.author_stat.interaction_data.digg_count : null,
2785
+ commentNumYesterday: isReday ? contentDataYesterday.author_stat.interaction_data.comment_count : null
2778
2786
  };
2779
2787
  return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(ttData, "头条号粉丝数据获取成功!");
2780
2788
  } catch (error) {
@@ -5253,9 +5261,7 @@ const xiaohongshuPublish = async (task, params)=>{
5253
5261
  if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
5254
5262
  return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
5255
5263
  };
5256
- var package_namespaceObject = {
5257
- i8: "1.2.15"
5258
- };
5264
+ var package_namespaceObject = JSON.parse('{"i8":"1.2.16-beta.1"}');
5259
5265
  class Action {
5260
5266
  constructor(task){
5261
5267
  this.task = task;