@iflyrpa/actions 4.0.7 → 4.0.8

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/bundle.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*! For license information please see bundle.js.LICENSE.txt */
2
2
 
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c14c6f4b-c5da-5f46-9b34-50e166610ae4")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5ecc4d57-e612-5298-a097-3acb08559a65")}catch(e){}}();
4
4
  var __webpack_modules__ = {
5
5
  "../../node_modules/.pnpm/agent-base@7.1.4/node_modules/agent-base/dist/helpers.js": function(__unused_webpack_module, exports1, __webpack_require__) {
6
6
  "use strict";
@@ -12493,7 +12493,7 @@ var __webpack_exports__ = {};
12493
12493
  i8: "0.1.2"
12494
12494
  };
12495
12495
  var package_namespaceObject_0 = {
12496
- i8: "4.0.7"
12496
+ i8: "4.0.8"
12497
12497
  };
12498
12498
  const external_node_fs_namespaceObject = require("node:fs");
12499
12499
  var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
@@ -27128,15 +27128,14 @@ var __webpack_exports__ = {};
27128
27128
  }
27129
27129
  return `socks5h://${ip}:${port}`;
27130
27130
  }
27131
- async function ProxyAgent(task, ip, adr, accountId, refresh) {
27131
+ async function ProxyAgent(task, addr, accountId, refresh) {
27132
27132
  const http = new Http({
27133
27133
  headers: {
27134
27134
  "content-type": "application/json"
27135
27135
  }
27136
27136
  });
27137
27137
  const params = {
27138
- ip: ip,
27139
- addr: adr || null,
27138
+ addr: addr || null,
27140
27139
  accountId: accountId
27141
27140
  };
27142
27141
  const ProxyInfo = await http.api({
@@ -27158,7 +27157,7 @@ var __webpack_exports__ = {};
27158
27157
  data: ProxyInfo.data
27159
27158
  }
27160
27159
  };
27161
- task.logger?.info(`请求代理:区域:${params.addr}, IP:${params.ip}, AccountId:${params.accountId}, 返回代理信息: ${ProxyInfo.data ? `${ProxyInfo.data.proxyIp}:${ProxyInfo.data.proxyPort}` : "无可用代理"}`, loggerInfo);
27160
+ task.logger?.info(`请求代理:区域:${params.addr}, AccountId:${params.accountId}, 返回代理信息: ${ProxyInfo.data ? `${ProxyInfo.data.proxyIp}:${ProxyInfo.data.proxyPort}` : "无可用代理"}`, loggerInfo);
27162
27161
  const proxyAgent = "000000" === ProxyInfo.code && ProxyInfo.data ? {
27163
27162
  ip: ProxyInfo.data.proxyIp,
27164
27163
  port: ProxyInfo.data.proxyPort,
@@ -27175,16 +27174,16 @@ var __webpack_exports__ = {};
27175
27174
  data: error
27176
27175
  };
27177
27176
  }
27178
- constructor(config, logger, adr, ip, accountId, platform){
27177
+ constructor(config, logger, addr, accountId, platform){
27179
27178
  this.agentPromise = void 0;
27180
27179
  this.apiClient = lib_axios.create({
27181
27180
  ...config
27182
27181
  });
27183
27182
  this.logger = logger;
27184
27183
  this.platform = platform;
27185
- if (ip) this.agentPromise = ProxyAgent({
27184
+ if (addr) this.agentPromise = ProxyAgent({
27186
27185
  logger
27187
- }, ip, adr, accountId);
27186
+ }, addr, accountId);
27188
27187
  this.addResponseInterceptor(()=>void 0);
27189
27188
  }
27190
27189
  clearResponseInterceptors() {
@@ -32312,16 +32311,11 @@ var __webpack_exports__ = {};
32312
32311
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
32313
32312
  let executionState;
32314
32313
  let proxyUrl;
32315
- if (params.localIP) {
32316
- const args = [
32317
- params.localIP,
32318
- params.proxyLoc,
32319
- params.accountId
32320
- ];
32321
- task.logger?.info(`==> 开始获取代理信息:${args}`);
32314
+ if (params.proxyLoc) {
32315
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
32322
32316
  const ProxyAgentResult = await ProxyAgent({
32323
32317
  logger: task.logger
32324
- }, ...args);
32318
+ }, params.proxyLoc, params.accountId);
32325
32319
  task.logger?.info("==> 代理信息获取成功!");
32326
32320
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
32327
32321
  }
@@ -32664,7 +32658,6 @@ var __webpack_exports__ = {};
32664
32658
  },
32665
32659
  task.logger,
32666
32660
  params.proxyLoc,
32667
- params.localIP,
32668
32661
  params.accountId,
32669
32662
  "baijiahao"
32670
32663
  ];
@@ -32870,7 +32863,6 @@ var __webpack_exports__ = {};
32870
32863
  enverionment: task.enverionment || "development",
32871
32864
  postId: params.articleId,
32872
32865
  eip: proxyHttp.proxyInfo,
32873
- proxyIp: params.localIP,
32874
32866
  accountId: params.accountId,
32875
32867
  uid: params.uid,
32876
32868
  platform: "baijiahao",
@@ -33389,7 +33381,6 @@ var __webpack_exports__ = {};
33389
33381
  },
33390
33382
  _task.logger,
33391
33383
  params.proxyLoc,
33392
- params.localIP,
33393
33384
  params.accountId
33394
33385
  ];
33395
33386
  const http = new Http(...args);
@@ -34519,7 +34510,7 @@ var __webpack_exports__ = {};
34519
34510
  heapTotal: `${Math.round(process.memoryUsage().heapTotal / 1024 / 1024)} MB`
34520
34511
  },
34521
34512
  accountId: params.accountId,
34522
- hasProxy: !!(params.proxyLoc || params.localIP)
34513
+ hasProxy: !!params.proxyLoc
34523
34514
  });
34524
34515
  }
34525
34516
  const check = {
@@ -34542,7 +34533,6 @@ var __webpack_exports__ = {};
34542
34533
  },
34543
34534
  _task.logger,
34544
34535
  params.proxyLoc,
34545
- params.localIP,
34546
34536
  params.accountId
34547
34537
  ];
34548
34538
  const http = new Http(...args);
@@ -34573,7 +34563,7 @@ var __webpack_exports__ = {};
34573
34563
  heapUsed: `${Math.round(process.memoryUsage().heapUsed / 1024 / 1024)} MB`,
34574
34564
  heapTotal: `${Math.round(process.memoryUsage().heapTotal / 1024 / 1024)} MB`
34575
34565
  },
34576
- hasProxy: !!(params.proxyLoc || params.localIP),
34566
+ hasProxy: !!params.proxyLoc,
34577
34567
  timeSinceLastLog: Date.now() - lastEnvLogTime
34578
34568
  }
34579
34569
  });
@@ -34976,7 +34966,6 @@ var __webpack_exports__ = {};
34976
34966
  },
34977
34967
  _task.logger,
34978
34968
  params.proxyLoc,
34979
- params.localIP,
34980
34969
  params.accountId
34981
34970
  ];
34982
34971
  const http = new Http(...args);
@@ -35063,7 +35052,6 @@ var __webpack_exports__ = {};
35063
35052
  },
35064
35053
  _task.logger,
35065
35054
  params.proxyLoc,
35066
- params.localIP,
35067
35055
  params.accountId
35068
35056
  ];
35069
35057
  const http = new Http(...args);
@@ -35154,7 +35142,6 @@ var __webpack_exports__ = {};
35154
35142
  },
35155
35143
  _task.logger,
35156
35144
  params.proxyLoc,
35157
- params.localIP,
35158
35145
  params.accountId
35159
35146
  ];
35160
35147
  const http = new Http(...args);
@@ -35240,7 +35227,6 @@ var __webpack_exports__ = {};
35240
35227
  },
35241
35228
  _task.logger,
35242
35229
  params.proxyLoc,
35243
- params.localIP,
35244
35230
  params.accountId
35245
35231
  ];
35246
35232
  const http = new Http(...args);
@@ -35324,7 +35310,6 @@ var __webpack_exports__ = {};
35324
35310
  },
35325
35311
  _task.logger,
35326
35312
  params.proxyLoc,
35327
- params.localIP,
35328
35313
  params.accountId
35329
35314
  ];
35330
35315
  const http = new Http(...args);
@@ -35420,7 +35405,6 @@ var __webpack_exports__ = {};
35420
35405
  },
35421
35406
  _task.logger,
35422
35407
  params.proxyLoc,
35423
- params.localIP,
35424
35408
  params.accountId
35425
35409
  ];
35426
35410
  const http = new Http(...args);
@@ -36071,7 +36055,6 @@ var __webpack_exports__ = {};
36071
36055
  },
36072
36056
  _task.logger,
36073
36057
  params.proxyLoc,
36074
- params.localIP,
36075
36058
  params.accountId
36076
36059
  ];
36077
36060
  const http = new Http(...args);
@@ -36217,7 +36200,6 @@ var __webpack_exports__ = {};
36217
36200
  },
36218
36201
  _task.logger,
36219
36202
  params.proxyLoc,
36220
- params.localIP,
36221
36203
  params.accountId
36222
36204
  ];
36223
36205
  const http = new Http(...args);
@@ -36305,7 +36287,6 @@ var __webpack_exports__ = {};
36305
36287
  },
36306
36288
  _task.logger,
36307
36289
  params.proxyLoc,
36308
- params.localIP,
36309
36290
  params.accountId
36310
36291
  ];
36311
36292
  const http = new Http(...args);
@@ -36393,7 +36374,6 @@ var __webpack_exports__ = {};
36393
36374
  },
36394
36375
  _task.logger,
36395
36376
  params.proxyLoc,
36396
- params.localIP,
36397
36377
  params.accountId
36398
36378
  ];
36399
36379
  const http = new Http(...args);
@@ -36614,7 +36594,6 @@ var __webpack_exports__ = {};
36614
36594
  },
36615
36595
  _task.logger,
36616
36596
  params.proxyLoc,
36617
- params.localIP,
36618
36597
  params.accountId
36619
36598
  ];
36620
36599
  const http = new Http(...args);
@@ -36976,16 +36955,11 @@ var __webpack_exports__ = {};
36976
36955
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
36977
36956
  let executionState;
36978
36957
  let proxyUrl;
36979
- if (params.localIP) {
36980
- const args = [
36981
- params.localIP,
36982
- params.proxyLoc,
36983
- params.accountId
36984
- ];
36985
- task.logger?.info(`==> 开始获取代理信息:${args}`);
36958
+ if (params.proxyLoc) {
36959
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
36986
36960
  const ProxyAgentResult = await ProxyAgent({
36987
36961
  logger: task.logger
36988
- }, ...args);
36962
+ }, params.proxyLoc, params.accountId);
36989
36963
  task.logger?.info("==> 代理信息获取成功!");
36990
36964
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
36991
36965
  }
@@ -38533,7 +38507,7 @@ var __webpack_exports__ = {};
38533
38507
  }
38534
38508
  const mock_mockAction = async (task, params)=>{
38535
38509
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
38536
- if (!params.extraParam || !params.extraParam["security-sdk/s_sdk_pri_key"] || !params.extraParam["security-sdk/s_sdk_pub_key"] || !params.extraParam["security-sdk/s_sdk_sign_data_key/web_protect"] || !params.extraParam["security-sdk/s_sdk_server_cert_key"] || !params.extraParam["security-sdk/s_sdk_crypt_sdk"]) return utils_response(414, "extraParam 参数缺失或不完整", "");
38510
+ if (!params.extraParam || !params.extraParam["security-sdk/s_sdk_sign_data_key/web_protect"] || !params.extraParam["security-sdk/s_sdk_server_cert_key"] || !params.extraParam["security-sdk/s_sdk_crypt_sdk"]) return utils_response(414, "extraParam 参数缺失或不完整", "");
38537
38511
  let currentStep = "初始化";
38538
38512
  try {
38539
38513
  currentStep = "验证账号信息";
@@ -38619,8 +38593,7 @@ var __webpack_exports__ = {};
38619
38593
  headers
38620
38594
  },
38621
38595
  task.logger,
38622
- "",
38623
- "",
38596
+ params.proxyLoc,
38624
38597
  params.accountId,
38625
38598
  "douyin"
38626
38599
  ];
@@ -38893,7 +38866,6 @@ var __webpack_exports__ = {};
38893
38866
  enverionment: task.enverionment || "development",
38894
38867
  postId: params.articleId,
38895
38868
  eip: proxyHttp.proxyInfo,
38896
- proxyIp: params.localIP,
38897
38869
  accountId: params.accountId,
38898
38870
  uid: params.uid,
38899
38871
  platform: "douyin",
@@ -39256,18 +39228,13 @@ var __webpack_exports__ = {};
39256
39228
  return downloadImage(url, external_node_path_default().join(tmpCachePath, fileName));
39257
39229
  }));
39258
39230
  let proxyUrl;
39259
- if (params.localIP) {
39260
- const args = [
39261
- params.localIP,
39262
- params.proxyLoc,
39263
- params.accountId
39264
- ];
39265
- task.logger?.info(`==> 开始获取代理信息:${args}`);
39266
- const proxyAgentResult = await ProxyAgent({
39231
+ if (params.proxyLoc) {
39232
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
39233
+ const ProxyAgentResult = await ProxyAgent({
39267
39234
  logger: task.logger
39268
- }, ...args);
39235
+ }, params.proxyLoc, params.accountId);
39269
39236
  task.logger?.info("==> 代理信息获取成功!");
39270
- proxyUrl = proxyAgentResult ? `http://${proxyAgentResult.ip}:${proxyAgentResult.port}` : void 0;
39237
+ proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
39271
39238
  }
39272
39239
  const commonCookies = {
39273
39240
  path: "/",
@@ -40224,7 +40191,6 @@ var __webpack_exports__ = {};
40224
40191
  },
40225
40192
  _task.logger,
40226
40193
  params.proxyLoc,
40227
- params.localIP,
40228
40194
  params.accountId
40229
40195
  ];
40230
40196
  const http = new Http(...args);
@@ -40282,7 +40248,6 @@ var __webpack_exports__ = {};
40282
40248
  },
40283
40249
  _task.logger,
40284
40250
  params.proxyLoc,
40285
- params.localIP,
40286
40251
  params.accountId
40287
40252
  ];
40288
40253
  const http = new Http(...args);
@@ -40329,7 +40294,6 @@ var __webpack_exports__ = {};
40329
40294
  },
40330
40295
  _task.logger,
40331
40296
  params.proxyLoc,
40332
- params.localIP,
40333
40297
  params.accountId
40334
40298
  ];
40335
40299
  const http = new Http(...args);
@@ -40391,7 +40355,6 @@ var __webpack_exports__ = {};
40391
40355
  },
40392
40356
  _task.logger,
40393
40357
  params.proxyLoc,
40394
- params.localIP,
40395
40358
  params.accountId
40396
40359
  ];
40397
40360
  const http = new Http(...args);
@@ -40499,7 +40462,6 @@ var __webpack_exports__ = {};
40499
40462
  },
40500
40463
  _task.logger,
40501
40464
  params.proxyLoc,
40502
- params.localIP,
40503
40465
  params.accountId
40504
40466
  ];
40505
40467
  const http = new Http(...args);
@@ -40606,7 +40568,6 @@ var __webpack_exports__ = {};
40606
40568
  },
40607
40569
  _task.logger,
40608
40570
  params.proxyLoc,
40609
- params.localIP,
40610
40571
  params.accountId
40611
40572
  ];
40612
40573
  const http = new Http(...args);
@@ -40837,7 +40798,6 @@ var __webpack_exports__ = {};
40837
40798
  },
40838
40799
  _task.logger,
40839
40800
  params.proxyLoc,
40840
- params.localIP,
40841
40801
  params.accountId
40842
40802
  ];
40843
40803
  const http = new Http(...args);
@@ -41170,7 +41130,6 @@ var __webpack_exports__ = {};
41170
41130
  },
41171
41131
  _task.logger,
41172
41132
  params.proxyLoc,
41173
- params.localIP,
41174
41133
  params.accountId
41175
41134
  ];
41176
41135
  const http = new Http(...args);
@@ -41276,7 +41235,6 @@ var __webpack_exports__ = {};
41276
41235
  },
41277
41236
  _task.logger,
41278
41237
  params.proxyLoc,
41279
- params.localIP,
41280
41238
  params.accountId
41281
41239
  ];
41282
41240
  const http = new Http(...args);
@@ -41741,7 +41699,6 @@ var __webpack_exports__ = {};
41741
41699
  },
41742
41700
  _task.logger,
41743
41701
  params.proxyLoc,
41744
- params.localIP,
41745
41702
  params.accountId
41746
41703
  ];
41747
41704
  const http = new Http(...args);
@@ -42072,7 +42029,6 @@ var __webpack_exports__ = {};
42072
42029
  },
42073
42030
  _task.logger,
42074
42031
  params.proxyLoc,
42075
- params.localIP,
42076
42032
  params.accountId
42077
42033
  ];
42078
42034
  const http = new Http(...args);
@@ -42125,7 +42081,6 @@ var __webpack_exports__ = {};
42125
42081
  },
42126
42082
  _task.logger,
42127
42083
  params.proxyLoc,
42128
- params.localIP,
42129
42084
  params.accountId
42130
42085
  ];
42131
42086
  const http = new Http(...args);
@@ -42178,7 +42133,6 @@ var __webpack_exports__ = {};
42178
42133
  },
42179
42134
  _task.logger,
42180
42135
  params.proxyLoc,
42181
- params.localIP,
42182
42136
  params.accountId
42183
42137
  ];
42184
42138
  const http = new Http(...args);
@@ -42225,7 +42179,6 @@ var __webpack_exports__ = {};
42225
42179
  },
42226
42180
  _task.logger,
42227
42181
  params.proxyLoc,
42228
- params.localIP,
42229
42182
  params.accountId
42230
42183
  ];
42231
42184
  const http = new Http(...args);
@@ -42264,7 +42217,6 @@ var __webpack_exports__ = {};
42264
42217
  },
42265
42218
  _task.logger,
42266
42219
  params.proxyLoc,
42267
- params.localIP,
42268
42220
  params.accountId
42269
42221
  ];
42270
42222
  const http = new Http(...args);
@@ -42326,7 +42278,6 @@ var __webpack_exports__ = {};
42326
42278
  },
42327
42279
  _task.logger,
42328
42280
  params.proxyLoc,
42329
- params.localIP,
42330
42281
  params.accountId
42331
42282
  ];
42332
42283
  const http = new Http(...args);
@@ -42383,7 +42334,6 @@ var __webpack_exports__ = {};
42383
42334
  },
42384
42335
  _task.logger,
42385
42336
  params.proxyLoc,
42386
- params.localIP,
42387
42337
  params.accountId
42388
42338
  ];
42389
42339
  const http = new Http(...args);
@@ -42469,7 +42419,6 @@ var __webpack_exports__ = {};
42469
42419
  },
42470
42420
  _task.logger,
42471
42421
  params.proxyLoc,
42472
- params.localIP,
42473
42422
  params.accountId
42474
42423
  ];
42475
42424
  const http = new Http(...args);
@@ -42557,7 +42506,6 @@ var __webpack_exports__ = {};
42557
42506
  },
42558
42507
  _task.logger,
42559
42508
  params.proxyLoc,
42560
- params.localIP,
42561
42509
  params.accountId
42562
42510
  ];
42563
42511
  const http = new Http(...args);
@@ -42667,7 +42615,6 @@ var __webpack_exports__ = {};
42667
42615
  },
42668
42616
  _task.logger,
42669
42617
  params.proxyLoc,
42670
- params.localIP,
42671
42618
  params.accountId
42672
42619
  ];
42673
42620
  const http = new Http(...args);
@@ -42945,16 +42892,11 @@ var __webpack_exports__ = {};
42945
42892
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
42946
42893
  let executionState;
42947
42894
  let proxyUrl;
42948
- if (params.localIP) {
42949
- const args = [
42950
- params.localIP,
42951
- params.proxyLoc,
42952
- params.accountId
42953
- ];
42954
- task.logger?.info(`==> 开始获取代理信息:${args}`);
42895
+ if (params.proxyLoc) {
42896
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
42955
42897
  const ProxyAgentResult = await ProxyAgent({
42956
42898
  logger: task.logger
42957
- }, ...args);
42899
+ }, params.proxyLoc, params.accountId);
42958
42900
  task.logger?.info("==> 代理信息获取成功!");
42959
42901
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
42960
42902
  }
@@ -43781,7 +43723,6 @@ var __webpack_exports__ = {};
43781
43723
  enverionment: confParams.enverionment || "development",
43782
43724
  postId: confParams.articleId,
43783
43725
  eip: proxyHttp.proxyInfo,
43784
- proxyIp: confParams.proxyIp,
43785
43726
  accountId: confParams.accountId,
43786
43727
  uid: confParams.uid,
43787
43728
  publishParams: publishData,
@@ -43808,7 +43749,6 @@ var __webpack_exports__ = {};
43808
43749
  },
43809
43750
  task.logger,
43810
43751
  params.proxyLoc,
43811
- params.localIP,
43812
43752
  params.accountId,
43813
43753
  "shipinhao"
43814
43754
  ];
@@ -43879,7 +43819,6 @@ var __webpack_exports__ = {};
43879
43819
  articleId: params.articleId,
43880
43820
  postId: params.articleId,
43881
43821
  eip: proxyHttp.proxyInfo,
43882
- proxyIp: params.localIP,
43883
43822
  accountId: params.accountId,
43884
43823
  uid: params.uid
43885
43824
  }, {
@@ -44266,16 +44205,11 @@ var __webpack_exports__ = {};
44266
44205
  return downloadImage(url, external_node_path_default().join(tmpCachePath, fileName));
44267
44206
  }));
44268
44207
  let proxyUrl;
44269
- if (params.localIP) {
44270
- const args = [
44271
- params.localIP,
44272
- params.proxyLoc,
44273
- params.accountId
44274
- ];
44275
- task.logger?.info(`==> 开始获取代理信息:${args}`);
44208
+ if (params.proxyLoc) {
44209
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
44276
44210
  const ProxyAgentResult = await ProxyAgent({
44277
44211
  logger: task.logger
44278
- }, ...args);
44212
+ }, params.proxyLoc, params.accountId);
44279
44213
  task.logger?.info("==> 代理信息获取成功!");
44280
44214
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
44281
44215
  }
@@ -44925,16 +44859,11 @@ var __webpack_exports__ = {};
44925
44859
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
44926
44860
  let executionState;
44927
44861
  let proxyUrl;
44928
- if (params.localIP) {
44929
- const args = [
44930
- params.localIP,
44931
- params.proxyLoc,
44932
- params.accountId
44933
- ];
44934
- task.logger?.info(`==> 开始获取代理信息:${args}`);
44862
+ if (params.proxyLoc) {
44863
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
44935
44864
  const ProxyAgentResult = await ProxyAgent({
44936
44865
  logger: task.logger
44937
- }, ...args);
44866
+ }, params.proxyLoc, params.accountId);
44938
44867
  task.logger?.info("==> 代理信息获取成功!");
44939
44868
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
44940
44869
  }
@@ -45185,7 +45114,6 @@ var __webpack_exports__ = {};
45185
45114
  },
45186
45115
  task.logger,
45187
45116
  params.proxyLoc,
45188
- params.localIP,
45189
45117
  params.accountId,
45190
45118
  "toutiao"
45191
45119
  ];
@@ -45383,7 +45311,6 @@ var __webpack_exports__ = {};
45383
45311
  enverionment: task.enverionment || "development",
45384
45312
  postId: params.articleId,
45385
45313
  eip: proxyHttp.proxyInfo,
45386
- proxyIp: params.localIP,
45387
45314
  accountId: params.accountId,
45388
45315
  uid: params.uid,
45389
45316
  platform: "toutiao",
@@ -46018,16 +45945,11 @@ var __webpack_exports__ = {};
46018
45945
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
46019
45946
  let executionState;
46020
45947
  let proxyUrl;
46021
- if (params.localIP) {
46022
- const args = [
46023
- params.localIP,
46024
- params.proxyLoc,
46025
- params.accountId
46026
- ];
46027
- task.logger?.info(`==> 开始获取代理信息:${args}`);
45948
+ if (params.proxyLoc) {
45949
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
46028
45950
  const ProxyAgentResult = await ProxyAgent({
46029
45951
  logger: task.logger
46030
- }, ...args);
45952
+ }, params.proxyLoc, params.accountId);
46031
45953
  task.logger?.info("==> 代理信息获取成功!");
46032
45954
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
46033
45955
  }
@@ -46519,7 +46441,6 @@ var __webpack_exports__ = {};
46519
46441
  },
46520
46442
  task.logger,
46521
46443
  params.proxyLoc,
46522
- params.localIP,
46523
46444
  params.accountId,
46524
46445
  "weixin"
46525
46446
  ];
@@ -47298,7 +47219,6 @@ var __webpack_exports__ = {};
47298
47219
  enverionment: task.enverionment || "development",
47299
47220
  postId: params.articleId,
47300
47221
  eip: proxyHttp.proxyInfo,
47301
- proxyIp: params.localIP,
47302
47222
  accountId: params.accountId,
47303
47223
  uid: params.uid,
47304
47224
  platform: "weixin",
@@ -48103,16 +48023,11 @@ var __webpack_exports__ = {};
48103
48023
  const reporter = task.reportService?.reportLoginStatus ?? (()=>Promise.resolve());
48104
48024
  let executionState;
48105
48025
  let proxyUrl;
48106
- if (params.localIP) {
48107
- const args = [
48108
- params.localIP,
48109
- params.proxyLoc,
48110
- params.accountId
48111
- ];
48112
- task.logger?.info(`==> 开始获取代理信息:${args}`);
48026
+ if (params.proxyLoc) {
48027
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
48113
48028
  const ProxyAgentResult = await ProxyAgent({
48114
48029
  logger: task.logger
48115
- }, ...args);
48030
+ }, params.proxyLoc, params.accountId);
48116
48031
  task.logger?.info("==> 代理信息获取成功!");
48117
48032
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
48118
48033
  }
@@ -48429,7 +48344,6 @@ var __webpack_exports__ = {};
48429
48344
  },
48430
48345
  task.logger,
48431
48346
  params.proxyLoc,
48432
- params.localIP,
48433
48347
  params.accountId,
48434
48348
  "xiaohongshu"
48435
48349
  ];
@@ -48470,8 +48384,8 @@ var __webpack_exports__ = {};
48470
48384
  params: fetchCoverParams
48471
48385
  }, {
48472
48386
  retries: 3,
48473
- retryDelay: 20,
48474
- timeout: 3000
48387
+ retryDelay: 500,
48388
+ timeout: 30000
48475
48389
  });
48476
48390
  for (const item of batchCoverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item.fileIds)uploadInfos.push({
48477
48391
  bucket: item.bucket || "",
@@ -48490,8 +48404,8 @@ var __webpack_exports__ = {};
48490
48404
  params: fetchCoverParams
48491
48405
  }, {
48492
48406
  retries: 3,
48493
- retryDelay: 20,
48494
- timeout: 3000
48407
+ retryDelay: 500,
48408
+ timeout: 30000
48495
48409
  });
48496
48410
  for (const item of coverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item.fileIds)uploadInfos.push({
48497
48411
  bucket: item.bucket || "",
@@ -48552,7 +48466,9 @@ var __webpack_exports__ = {};
48552
48466
  headers: {
48553
48467
  "x-cos-security-token": ossToken
48554
48468
  },
48555
- defaultErrorMsg: "图片上传异常,请稍后重试发布。"
48469
+ defaultErrorMsg: "图片上传异常,请稍后重试。"
48470
+ }, {
48471
+ timeout: 60000
48556
48472
  });
48557
48473
  return {
48558
48474
  ossFileId,
@@ -48562,6 +48478,8 @@ var __webpack_exports__ = {};
48562
48478
  originSize
48563
48479
  };
48564
48480
  } catch (error) {
48481
+ const e = Http.handleApiError(error);
48482
+ task.logger.warn(`[xhs upload] 第${attempt + 1}次失败 index=${index} bucket=${ossBucketIndex} domain=${ossDomain} fileId=${ossFileId} code=${e.code} msg=${e.message} data=${stringifyError(e.data)}`);
48565
48483
  attempt++;
48566
48484
  }
48567
48485
  }
@@ -48795,7 +48713,6 @@ var __webpack_exports__ = {};
48795
48713
  enverionment: task.enverionment || "development",
48796
48714
  postId: params.articleId,
48797
48715
  eip: proxyHttp.proxyInfo,
48798
- proxyIp: params.localIP,
48799
48716
  accountId: params.accountId,
48800
48717
  uid: params.uid,
48801
48718
  platform: "xiaohongshu",
@@ -49057,16 +48974,11 @@ var __webpack_exports__ = {};
49057
48974
  return downloadImage(url, external_node_path_default().join(tmpCachePath, fileName));
49058
48975
  }));
49059
48976
  let proxyUrl;
49060
- if (params.localIP) {
49061
- const args = [
49062
- params.localIP,
49063
- params.proxyLoc,
49064
- params.accountId
49065
- ];
49066
- task.logger?.info(`==> 开始获取代理信息:${args}`);
48977
+ if (params.proxyLoc) {
48978
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
49067
48979
  const ProxyAgentResult = await ProxyAgent({
49068
48980
  logger: task.logger
49069
- }, ...args);
48981
+ }, params.proxyLoc, params.accountId);
49070
48982
  task.logger?.info("==> 代理信息获取成功!");
49071
48983
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
49072
48984
  }
@@ -49495,7 +49407,6 @@ var __webpack_exports__ = {};
49495
49407
  },
49496
49408
  task.logger,
49497
49409
  params.proxyLoc,
49498
- params.localIP,
49499
49410
  params.accountId,
49500
49411
  "xiaohongshu-rpa"
49501
49412
  ];
@@ -49541,8 +49452,8 @@ var __webpack_exports__ = {};
49541
49452
  params: fetchCoverParams
49542
49453
  }, {
49543
49454
  retries: 3,
49544
- retryDelay: 20,
49545
- timeout: 3000
49455
+ retryDelay: 500,
49456
+ timeout: 8000
49546
49457
  });
49547
49458
  for (const item of batchCoverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item?.fileIds ?? [])uploadInfos.push({
49548
49459
  bucket: item.bucket || "",
@@ -49561,8 +49472,8 @@ var __webpack_exports__ = {};
49561
49472
  params: fetchCoverParams
49562
49473
  }, {
49563
49474
  retries: 3,
49564
- retryDelay: 20,
49565
- timeout: 3000
49475
+ retryDelay: 500,
49476
+ timeout: 8000
49566
49477
  });
49567
49478
  for (const item of coverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item?.fileIds ?? [])uploadInfos.push({
49568
49479
  bucket: item.bucket || "",
@@ -49607,6 +49518,8 @@ var __webpack_exports__ = {};
49607
49518
  "x-cos-security-token": ossToken
49608
49519
  },
49609
49520
  defaultErrorMsg: "图片上传异常,请稍后重试发布。"
49521
+ }, {
49522
+ timeout: 60000
49610
49523
  });
49611
49524
  return {
49612
49525
  ossFileId,
@@ -49916,7 +49829,6 @@ var __webpack_exports__ = {};
49916
49829
  },
49917
49830
  _task.logger,
49918
49831
  params.proxyLoc,
49919
- params.localIP,
49920
49832
  params.accountId
49921
49833
  ];
49922
49834
  const http = new Http(...args);
@@ -50002,7 +49914,6 @@ var __webpack_exports__ = {};
50002
49914
  },
50003
49915
  _task.logger,
50004
49916
  params.proxyLoc,
50005
- params.localIP,
50006
49917
  params.accountId
50007
49918
  ];
50008
49919
  const http = new Http(...args);
@@ -50041,7 +49952,6 @@ var __webpack_exports__ = {};
50041
49952
  },
50042
49953
  _task.logger,
50043
49954
  params.proxyLoc,
50044
- params.localIP,
50045
49955
  params.accountId
50046
49956
  ];
50047
49957
  const http = new Http(...args);
@@ -50094,7 +50004,6 @@ var __webpack_exports__ = {};
50094
50004
  },
50095
50005
  _task.logger,
50096
50006
  params.proxyLoc,
50097
- params.localIP,
50098
50007
  params.accountId
50099
50008
  ];
50100
50009
  const http = new Http(...args);
@@ -50151,7 +50060,6 @@ var __webpack_exports__ = {};
50151
50060
  },
50152
50061
  _task.logger,
50153
50062
  params.proxyLoc,
50154
- params.localIP,
50155
50063
  params.accountId
50156
50064
  ];
50157
50065
  const http = new Http(...args);
@@ -50224,7 +50132,6 @@ var __webpack_exports__ = {};
50224
50132
  },
50225
50133
  _task.logger,
50226
50134
  params.proxyLoc,
50227
- params.localIP,
50228
50135
  params.accountId
50229
50136
  ];
50230
50137
  const http = new Http(...args);
@@ -50328,7 +50235,6 @@ var __webpack_exports__ = {};
50328
50235
  },
50329
50236
  _task.logger,
50330
50237
  params.proxyLoc,
50331
- params.localIP,
50332
50238
  params.accountId
50333
50239
  ];
50334
50240
  const http = new Http(...args);
@@ -50768,4 +50674,4 @@ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_targe
50768
50674
  });
50769
50675
 
50770
50676
  //# sourceMappingURL=bundle.js.map
50771
- //# debugId=c14c6f4b-c5da-5f46-9b34-50e166610ae4
50677
+ //# debugId=5ecc4d57-e612-5298-a097-3acb08559a65