@iflyrpa/actions 1.2.24-beta.0 → 1.2.24-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.
@@ -10,8 +10,7 @@ export interface BaijiahaoPublishParams extends ActiomCommonParams {
10
10
  token: string;
11
11
  title: string;
12
12
  content: string;
13
- proxyLoc: string;
14
- ipAddress?: string;
13
+ proxyLoc?: string;
15
14
  huiwenToken?: string;
16
15
  settingInfo: {
17
16
  baijiahaoTitle: string;
@@ -6,7 +6,6 @@ export interface ToutiaoPublishParams extends ActiomCommonParams {
6
6
  title: string;
7
7
  content: string;
8
8
  proxyLoc?: string;
9
- ipAddress?: string;
10
9
  huiwenToken?: string;
11
10
  settingInfo: {
12
11
  toutiaoCoverType: CoverType;
@@ -19,7 +19,6 @@ export interface WeixinPublishParams extends ActiomCommonParams {
19
19
  appMsgId?: string;
20
20
  operation_seq?: string;
21
21
  proxyLoc?: string;
22
- ipAddress?: string;
23
22
  huiwenToken?: string;
24
23
  settingInfo: {
25
24
  wxCover: string;
@@ -22,7 +22,6 @@ export interface XiaohongshuPublishParams extends ActiomCommonParams {
22
22
  selfDeclaration?: SelfDeclaration;
23
23
  topic?: Xiaohongshu.Topic[];
24
24
  proxyLoc?: string;
25
- ipAddress?: string;
26
25
  huiwenToken?: string;
27
26
  visibleRange: "public" | "private";
28
27
  isImmediatelyPublish?: boolean;
package/dist/bundle.js CHANGED
@@ -15613,6 +15613,7 @@ var __webpack_exports__ = {};
15613
15613
  addr: adr
15614
15614
  }
15615
15615
  });
15616
+ console.log("代理获取状态:", ProxyInfo.msg, "代理返回信息:", JSON.stringify(ProxyInfo.data[0]));
15616
15617
  return 0 === ProxyInfo.code && ProxyInfo.data.length > 0 ? new dist.HttpsProxyAgent(`http://${ProxyData.api}:${ProxyData.akey}@${ProxyInfo.data[0].proxyAddress}`) : null;
15617
15618
  };
15618
15619
  class Http {
@@ -15663,6 +15664,10 @@ var __webpack_exports__ = {};
15663
15664
  async api(config) {
15664
15665
  try {
15665
15666
  const agent = this.adr ? await ProxyAgent(this.adr) : void 0;
15667
+ if (this.adr && null == agent) return Promise.reject({
15668
+ code: 200,
15669
+ message: "可用代理地址为空,请稍候重试!"
15670
+ });
15666
15671
  const response = await this.apiClient({
15667
15672
  ...config,
15668
15673
  ...agent ? {
@@ -20261,9 +20266,7 @@ var __webpack_exports__ = {};
20261
20266
  if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
20262
20267
  return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
20263
20268
  };
20264
- var package_namespaceObject = {
20265
- i8: "1.2.23"
20266
- };
20269
+ var package_namespaceObject = JSON.parse('{"i8":"1.2.24-beta.1"}');
20267
20270
  const BetaFlag = "HuiwenCanary";
20268
20271
  class Action {
20269
20272
  constructor(task){