@iflyrpa/actions 4.0.7 → 4.0.8-beta.0

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]="e1a74875-fb1a-57f5-b655-1374d18c5370")}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";
@@ -12492,9 +12492,7 @@ var __webpack_exports__ = {};
12492
12492
  var package_namespaceObject = {
12493
12493
  i8: "0.1.2"
12494
12494
  };
12495
- var package_namespaceObject_0 = {
12496
- i8: "4.0.7"
12497
- };
12495
+ var package_namespaceObject_0 = JSON.parse('{"i8":"4.0.8-beta.0"}');
12498
12496
  const external_node_fs_namespaceObject = require("node:fs");
12499
12497
  var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
12500
12498
  const external_node_http_namespaceObject = require("node:http");
@@ -27128,15 +27126,14 @@ var __webpack_exports__ = {};
27128
27126
  }
27129
27127
  return `socks5h://${ip}:${port}`;
27130
27128
  }
27131
- async function ProxyAgent(task, ip, adr, accountId, refresh) {
27129
+ async function ProxyAgent(task, addr, accountId, refresh) {
27132
27130
  const http = new Http({
27133
27131
  headers: {
27134
27132
  "content-type": "application/json"
27135
27133
  }
27136
27134
  });
27137
27135
  const params = {
27138
- ip: ip,
27139
- addr: adr || null,
27136
+ addr: addr || null,
27140
27137
  accountId: accountId
27141
27138
  };
27142
27139
  const ProxyInfo = await http.api({
@@ -27158,7 +27155,7 @@ var __webpack_exports__ = {};
27158
27155
  data: ProxyInfo.data
27159
27156
  }
27160
27157
  };
27161
- task.logger?.info(`请求代理:区域:${params.addr}, IP:${params.ip}, AccountId:${params.accountId}, 返回代理信息: ${ProxyInfo.data ? `${ProxyInfo.data.proxyIp}:${ProxyInfo.data.proxyPort}` : "无可用代理"}`, loggerInfo);
27158
+ task.logger?.info(`请求代理:区域:${params.addr}, AccountId:${params.accountId}, 返回代理信息: ${ProxyInfo.data ? `${ProxyInfo.data.proxyIp}:${ProxyInfo.data.proxyPort}` : "无可用代理"}`, loggerInfo);
27162
27159
  const proxyAgent = "000000" === ProxyInfo.code && ProxyInfo.data ? {
27163
27160
  ip: ProxyInfo.data.proxyIp,
27164
27161
  port: ProxyInfo.data.proxyPort,
@@ -27175,16 +27172,16 @@ var __webpack_exports__ = {};
27175
27172
  data: error
27176
27173
  };
27177
27174
  }
27178
- constructor(config, logger, adr, ip, accountId, platform){
27175
+ constructor(config, logger, addr, accountId, platform){
27179
27176
  this.agentPromise = void 0;
27180
27177
  this.apiClient = lib_axios.create({
27181
27178
  ...config
27182
27179
  });
27183
27180
  this.logger = logger;
27184
27181
  this.platform = platform;
27185
- if (ip) this.agentPromise = ProxyAgent({
27182
+ if (addr) this.agentPromise = ProxyAgent({
27186
27183
  logger
27187
- }, ip, adr, accountId);
27184
+ }, addr, accountId);
27188
27185
  this.addResponseInterceptor(()=>void 0);
27189
27186
  }
27190
27187
  clearResponseInterceptors() {
@@ -32312,16 +32309,11 @@ var __webpack_exports__ = {};
32312
32309
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
32313
32310
  let executionState;
32314
32311
  let proxyUrl;
32315
- if (params.localIP) {
32316
- const args = [
32317
- params.localIP,
32318
- params.proxyLoc,
32319
- params.accountId
32320
- ];
32321
- task.logger?.info(`==> 开始获取代理信息:${args}`);
32312
+ if (params.proxyLoc) {
32313
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
32322
32314
  const ProxyAgentResult = await ProxyAgent({
32323
32315
  logger: task.logger
32324
- }, ...args);
32316
+ }, params.proxyLoc, params.accountId);
32325
32317
  task.logger?.info("==> 代理信息获取成功!");
32326
32318
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
32327
32319
  }
@@ -32664,7 +32656,6 @@ var __webpack_exports__ = {};
32664
32656
  },
32665
32657
  task.logger,
32666
32658
  params.proxyLoc,
32667
- params.localIP,
32668
32659
  params.accountId,
32669
32660
  "baijiahao"
32670
32661
  ];
@@ -32870,7 +32861,6 @@ var __webpack_exports__ = {};
32870
32861
  enverionment: task.enverionment || "development",
32871
32862
  postId: params.articleId,
32872
32863
  eip: proxyHttp.proxyInfo,
32873
- proxyIp: params.localIP,
32874
32864
  accountId: params.accountId,
32875
32865
  uid: params.uid,
32876
32866
  platform: "baijiahao",
@@ -33389,7 +33379,6 @@ var __webpack_exports__ = {};
33389
33379
  },
33390
33380
  _task.logger,
33391
33381
  params.proxyLoc,
33392
- params.localIP,
33393
33382
  params.accountId
33394
33383
  ];
33395
33384
  const http = new Http(...args);
@@ -34519,7 +34508,7 @@ var __webpack_exports__ = {};
34519
34508
  heapTotal: `${Math.round(process.memoryUsage().heapTotal / 1024 / 1024)} MB`
34520
34509
  },
34521
34510
  accountId: params.accountId,
34522
- hasProxy: !!(params.proxyLoc || params.localIP)
34511
+ hasProxy: !!params.proxyLoc
34523
34512
  });
34524
34513
  }
34525
34514
  const check = {
@@ -34542,7 +34531,6 @@ var __webpack_exports__ = {};
34542
34531
  },
34543
34532
  _task.logger,
34544
34533
  params.proxyLoc,
34545
- params.localIP,
34546
34534
  params.accountId
34547
34535
  ];
34548
34536
  const http = new Http(...args);
@@ -34573,7 +34561,7 @@ var __webpack_exports__ = {};
34573
34561
  heapUsed: `${Math.round(process.memoryUsage().heapUsed / 1024 / 1024)} MB`,
34574
34562
  heapTotal: `${Math.round(process.memoryUsage().heapTotal / 1024 / 1024)} MB`
34575
34563
  },
34576
- hasProxy: !!(params.proxyLoc || params.localIP),
34564
+ hasProxy: !!params.proxyLoc,
34577
34565
  timeSinceLastLog: Date.now() - lastEnvLogTime
34578
34566
  }
34579
34567
  });
@@ -34976,7 +34964,6 @@ var __webpack_exports__ = {};
34976
34964
  },
34977
34965
  _task.logger,
34978
34966
  params.proxyLoc,
34979
- params.localIP,
34980
34967
  params.accountId
34981
34968
  ];
34982
34969
  const http = new Http(...args);
@@ -35063,7 +35050,6 @@ var __webpack_exports__ = {};
35063
35050
  },
35064
35051
  _task.logger,
35065
35052
  params.proxyLoc,
35066
- params.localIP,
35067
35053
  params.accountId
35068
35054
  ];
35069
35055
  const http = new Http(...args);
@@ -35154,7 +35140,6 @@ var __webpack_exports__ = {};
35154
35140
  },
35155
35141
  _task.logger,
35156
35142
  params.proxyLoc,
35157
- params.localIP,
35158
35143
  params.accountId
35159
35144
  ];
35160
35145
  const http = new Http(...args);
@@ -35240,7 +35225,6 @@ var __webpack_exports__ = {};
35240
35225
  },
35241
35226
  _task.logger,
35242
35227
  params.proxyLoc,
35243
- params.localIP,
35244
35228
  params.accountId
35245
35229
  ];
35246
35230
  const http = new Http(...args);
@@ -35324,7 +35308,6 @@ var __webpack_exports__ = {};
35324
35308
  },
35325
35309
  _task.logger,
35326
35310
  params.proxyLoc,
35327
- params.localIP,
35328
35311
  params.accountId
35329
35312
  ];
35330
35313
  const http = new Http(...args);
@@ -35420,7 +35403,6 @@ var __webpack_exports__ = {};
35420
35403
  },
35421
35404
  _task.logger,
35422
35405
  params.proxyLoc,
35423
- params.localIP,
35424
35406
  params.accountId
35425
35407
  ];
35426
35408
  const http = new Http(...args);
@@ -36071,7 +36053,6 @@ var __webpack_exports__ = {};
36071
36053
  },
36072
36054
  _task.logger,
36073
36055
  params.proxyLoc,
36074
- params.localIP,
36075
36056
  params.accountId
36076
36057
  ];
36077
36058
  const http = new Http(...args);
@@ -36217,7 +36198,6 @@ var __webpack_exports__ = {};
36217
36198
  },
36218
36199
  _task.logger,
36219
36200
  params.proxyLoc,
36220
- params.localIP,
36221
36201
  params.accountId
36222
36202
  ];
36223
36203
  const http = new Http(...args);
@@ -36305,7 +36285,6 @@ var __webpack_exports__ = {};
36305
36285
  },
36306
36286
  _task.logger,
36307
36287
  params.proxyLoc,
36308
- params.localIP,
36309
36288
  params.accountId
36310
36289
  ];
36311
36290
  const http = new Http(...args);
@@ -36393,7 +36372,6 @@ var __webpack_exports__ = {};
36393
36372
  },
36394
36373
  _task.logger,
36395
36374
  params.proxyLoc,
36396
- params.localIP,
36397
36375
  params.accountId
36398
36376
  ];
36399
36377
  const http = new Http(...args);
@@ -36614,7 +36592,6 @@ var __webpack_exports__ = {};
36614
36592
  },
36615
36593
  _task.logger,
36616
36594
  params.proxyLoc,
36617
- params.localIP,
36618
36595
  params.accountId
36619
36596
  ];
36620
36597
  const http = new Http(...args);
@@ -36976,16 +36953,11 @@ var __webpack_exports__ = {};
36976
36953
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
36977
36954
  let executionState;
36978
36955
  let proxyUrl;
36979
- if (params.localIP) {
36980
- const args = [
36981
- params.localIP,
36982
- params.proxyLoc,
36983
- params.accountId
36984
- ];
36985
- task.logger?.info(`==> 开始获取代理信息:${args}`);
36956
+ if (params.proxyLoc) {
36957
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
36986
36958
  const ProxyAgentResult = await ProxyAgent({
36987
36959
  logger: task.logger
36988
- }, ...args);
36960
+ }, params.proxyLoc, params.accountId);
36989
36961
  task.logger?.info("==> 代理信息获取成功!");
36990
36962
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
36991
36963
  }
@@ -38533,7 +38505,7 @@ var __webpack_exports__ = {};
38533
38505
  }
38534
38506
  const mock_mockAction = async (task, params)=>{
38535
38507
  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 参数缺失或不完整", "");
38508
+ 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
38509
  let currentStep = "初始化";
38538
38510
  try {
38539
38511
  currentStep = "验证账号信息";
@@ -38619,8 +38591,7 @@ var __webpack_exports__ = {};
38619
38591
  headers
38620
38592
  },
38621
38593
  task.logger,
38622
- "",
38623
- "",
38594
+ params.proxyLoc,
38624
38595
  params.accountId,
38625
38596
  "douyin"
38626
38597
  ];
@@ -38893,7 +38864,6 @@ var __webpack_exports__ = {};
38893
38864
  enverionment: task.enverionment || "development",
38894
38865
  postId: params.articleId,
38895
38866
  eip: proxyHttp.proxyInfo,
38896
- proxyIp: params.localIP,
38897
38867
  accountId: params.accountId,
38898
38868
  uid: params.uid,
38899
38869
  platform: "douyin",
@@ -39256,18 +39226,13 @@ var __webpack_exports__ = {};
39256
39226
  return downloadImage(url, external_node_path_default().join(tmpCachePath, fileName));
39257
39227
  }));
39258
39228
  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({
39229
+ if (params.proxyLoc) {
39230
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
39231
+ const ProxyAgentResult = await ProxyAgent({
39267
39232
  logger: task.logger
39268
- }, ...args);
39233
+ }, params.proxyLoc, params.accountId);
39269
39234
  task.logger?.info("==> 代理信息获取成功!");
39270
- proxyUrl = proxyAgentResult ? `http://${proxyAgentResult.ip}:${proxyAgentResult.port}` : void 0;
39235
+ proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
39271
39236
  }
39272
39237
  const commonCookies = {
39273
39238
  path: "/",
@@ -40224,7 +40189,6 @@ var __webpack_exports__ = {};
40224
40189
  },
40225
40190
  _task.logger,
40226
40191
  params.proxyLoc,
40227
- params.localIP,
40228
40192
  params.accountId
40229
40193
  ];
40230
40194
  const http = new Http(...args);
@@ -40282,7 +40246,6 @@ var __webpack_exports__ = {};
40282
40246
  },
40283
40247
  _task.logger,
40284
40248
  params.proxyLoc,
40285
- params.localIP,
40286
40249
  params.accountId
40287
40250
  ];
40288
40251
  const http = new Http(...args);
@@ -40329,7 +40292,6 @@ var __webpack_exports__ = {};
40329
40292
  },
40330
40293
  _task.logger,
40331
40294
  params.proxyLoc,
40332
- params.localIP,
40333
40295
  params.accountId
40334
40296
  ];
40335
40297
  const http = new Http(...args);
@@ -40391,7 +40353,6 @@ var __webpack_exports__ = {};
40391
40353
  },
40392
40354
  _task.logger,
40393
40355
  params.proxyLoc,
40394
- params.localIP,
40395
40356
  params.accountId
40396
40357
  ];
40397
40358
  const http = new Http(...args);
@@ -40499,7 +40460,6 @@ var __webpack_exports__ = {};
40499
40460
  },
40500
40461
  _task.logger,
40501
40462
  params.proxyLoc,
40502
- params.localIP,
40503
40463
  params.accountId
40504
40464
  ];
40505
40465
  const http = new Http(...args);
@@ -40606,7 +40566,6 @@ var __webpack_exports__ = {};
40606
40566
  },
40607
40567
  _task.logger,
40608
40568
  params.proxyLoc,
40609
- params.localIP,
40610
40569
  params.accountId
40611
40570
  ];
40612
40571
  const http = new Http(...args);
@@ -40837,7 +40796,6 @@ var __webpack_exports__ = {};
40837
40796
  },
40838
40797
  _task.logger,
40839
40798
  params.proxyLoc,
40840
- params.localIP,
40841
40799
  params.accountId
40842
40800
  ];
40843
40801
  const http = new Http(...args);
@@ -41170,7 +41128,6 @@ var __webpack_exports__ = {};
41170
41128
  },
41171
41129
  _task.logger,
41172
41130
  params.proxyLoc,
41173
- params.localIP,
41174
41131
  params.accountId
41175
41132
  ];
41176
41133
  const http = new Http(...args);
@@ -41276,7 +41233,6 @@ var __webpack_exports__ = {};
41276
41233
  },
41277
41234
  _task.logger,
41278
41235
  params.proxyLoc,
41279
- params.localIP,
41280
41236
  params.accountId
41281
41237
  ];
41282
41238
  const http = new Http(...args);
@@ -41741,7 +41697,6 @@ var __webpack_exports__ = {};
41741
41697
  },
41742
41698
  _task.logger,
41743
41699
  params.proxyLoc,
41744
- params.localIP,
41745
41700
  params.accountId
41746
41701
  ];
41747
41702
  const http = new Http(...args);
@@ -42072,7 +42027,6 @@ var __webpack_exports__ = {};
42072
42027
  },
42073
42028
  _task.logger,
42074
42029
  params.proxyLoc,
42075
- params.localIP,
42076
42030
  params.accountId
42077
42031
  ];
42078
42032
  const http = new Http(...args);
@@ -42125,7 +42079,6 @@ var __webpack_exports__ = {};
42125
42079
  },
42126
42080
  _task.logger,
42127
42081
  params.proxyLoc,
42128
- params.localIP,
42129
42082
  params.accountId
42130
42083
  ];
42131
42084
  const http = new Http(...args);
@@ -42178,7 +42131,6 @@ var __webpack_exports__ = {};
42178
42131
  },
42179
42132
  _task.logger,
42180
42133
  params.proxyLoc,
42181
- params.localIP,
42182
42134
  params.accountId
42183
42135
  ];
42184
42136
  const http = new Http(...args);
@@ -42225,7 +42177,6 @@ var __webpack_exports__ = {};
42225
42177
  },
42226
42178
  _task.logger,
42227
42179
  params.proxyLoc,
42228
- params.localIP,
42229
42180
  params.accountId
42230
42181
  ];
42231
42182
  const http = new Http(...args);
@@ -42264,7 +42215,6 @@ var __webpack_exports__ = {};
42264
42215
  },
42265
42216
  _task.logger,
42266
42217
  params.proxyLoc,
42267
- params.localIP,
42268
42218
  params.accountId
42269
42219
  ];
42270
42220
  const http = new Http(...args);
@@ -42326,7 +42276,6 @@ var __webpack_exports__ = {};
42326
42276
  },
42327
42277
  _task.logger,
42328
42278
  params.proxyLoc,
42329
- params.localIP,
42330
42279
  params.accountId
42331
42280
  ];
42332
42281
  const http = new Http(...args);
@@ -42383,7 +42332,6 @@ var __webpack_exports__ = {};
42383
42332
  },
42384
42333
  _task.logger,
42385
42334
  params.proxyLoc,
42386
- params.localIP,
42387
42335
  params.accountId
42388
42336
  ];
42389
42337
  const http = new Http(...args);
@@ -42469,7 +42417,6 @@ var __webpack_exports__ = {};
42469
42417
  },
42470
42418
  _task.logger,
42471
42419
  params.proxyLoc,
42472
- params.localIP,
42473
42420
  params.accountId
42474
42421
  ];
42475
42422
  const http = new Http(...args);
@@ -42557,7 +42504,6 @@ var __webpack_exports__ = {};
42557
42504
  },
42558
42505
  _task.logger,
42559
42506
  params.proxyLoc,
42560
- params.localIP,
42561
42507
  params.accountId
42562
42508
  ];
42563
42509
  const http = new Http(...args);
@@ -42667,7 +42613,6 @@ var __webpack_exports__ = {};
42667
42613
  },
42668
42614
  _task.logger,
42669
42615
  params.proxyLoc,
42670
- params.localIP,
42671
42616
  params.accountId
42672
42617
  ];
42673
42618
  const http = new Http(...args);
@@ -42945,16 +42890,11 @@ var __webpack_exports__ = {};
42945
42890
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
42946
42891
  let executionState;
42947
42892
  let proxyUrl;
42948
- if (params.localIP) {
42949
- const args = [
42950
- params.localIP,
42951
- params.proxyLoc,
42952
- params.accountId
42953
- ];
42954
- task.logger?.info(`==> 开始获取代理信息:${args}`);
42893
+ if (params.proxyLoc) {
42894
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
42955
42895
  const ProxyAgentResult = await ProxyAgent({
42956
42896
  logger: task.logger
42957
- }, ...args);
42897
+ }, params.proxyLoc, params.accountId);
42958
42898
  task.logger?.info("==> 代理信息获取成功!");
42959
42899
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
42960
42900
  }
@@ -43781,7 +43721,6 @@ var __webpack_exports__ = {};
43781
43721
  enverionment: confParams.enverionment || "development",
43782
43722
  postId: confParams.articleId,
43783
43723
  eip: proxyHttp.proxyInfo,
43784
- proxyIp: confParams.proxyIp,
43785
43724
  accountId: confParams.accountId,
43786
43725
  uid: confParams.uid,
43787
43726
  publishParams: publishData,
@@ -43808,7 +43747,6 @@ var __webpack_exports__ = {};
43808
43747
  },
43809
43748
  task.logger,
43810
43749
  params.proxyLoc,
43811
- params.localIP,
43812
43750
  params.accountId,
43813
43751
  "shipinhao"
43814
43752
  ];
@@ -43879,7 +43817,6 @@ var __webpack_exports__ = {};
43879
43817
  articleId: params.articleId,
43880
43818
  postId: params.articleId,
43881
43819
  eip: proxyHttp.proxyInfo,
43882
- proxyIp: params.localIP,
43883
43820
  accountId: params.accountId,
43884
43821
  uid: params.uid
43885
43822
  }, {
@@ -44266,16 +44203,11 @@ var __webpack_exports__ = {};
44266
44203
  return downloadImage(url, external_node_path_default().join(tmpCachePath, fileName));
44267
44204
  }));
44268
44205
  let proxyUrl;
44269
- if (params.localIP) {
44270
- const args = [
44271
- params.localIP,
44272
- params.proxyLoc,
44273
- params.accountId
44274
- ];
44275
- task.logger?.info(`==> 开始获取代理信息:${args}`);
44206
+ if (params.proxyLoc) {
44207
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
44276
44208
  const ProxyAgentResult = await ProxyAgent({
44277
44209
  logger: task.logger
44278
- }, ...args);
44210
+ }, params.proxyLoc, params.accountId);
44279
44211
  task.logger?.info("==> 代理信息获取成功!");
44280
44212
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
44281
44213
  }
@@ -44925,16 +44857,11 @@ var __webpack_exports__ = {};
44925
44857
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
44926
44858
  let executionState;
44927
44859
  let proxyUrl;
44928
- if (params.localIP) {
44929
- const args = [
44930
- params.localIP,
44931
- params.proxyLoc,
44932
- params.accountId
44933
- ];
44934
- task.logger?.info(`==> 开始获取代理信息:${args}`);
44860
+ if (params.proxyLoc) {
44861
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
44935
44862
  const ProxyAgentResult = await ProxyAgent({
44936
44863
  logger: task.logger
44937
- }, ...args);
44864
+ }, params.proxyLoc, params.accountId);
44938
44865
  task.logger?.info("==> 代理信息获取成功!");
44939
44866
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
44940
44867
  }
@@ -45185,7 +45112,6 @@ var __webpack_exports__ = {};
45185
45112
  },
45186
45113
  task.logger,
45187
45114
  params.proxyLoc,
45188
- params.localIP,
45189
45115
  params.accountId,
45190
45116
  "toutiao"
45191
45117
  ];
@@ -45383,7 +45309,6 @@ var __webpack_exports__ = {};
45383
45309
  enverionment: task.enverionment || "development",
45384
45310
  postId: params.articleId,
45385
45311
  eip: proxyHttp.proxyInfo,
45386
- proxyIp: params.localIP,
45387
45312
  accountId: params.accountId,
45388
45313
  uid: params.uid,
45389
45314
  platform: "toutiao",
@@ -46018,16 +45943,11 @@ var __webpack_exports__ = {};
46018
45943
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
46019
45944
  let executionState;
46020
45945
  let proxyUrl;
46021
- if (params.localIP) {
46022
- const args = [
46023
- params.localIP,
46024
- params.proxyLoc,
46025
- params.accountId
46026
- ];
46027
- task.logger?.info(`==> 开始获取代理信息:${args}`);
45946
+ if (params.proxyLoc) {
45947
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
46028
45948
  const ProxyAgentResult = await ProxyAgent({
46029
45949
  logger: task.logger
46030
- }, ...args);
45950
+ }, params.proxyLoc, params.accountId);
46031
45951
  task.logger?.info("==> 代理信息获取成功!");
46032
45952
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
46033
45953
  }
@@ -46519,7 +46439,6 @@ var __webpack_exports__ = {};
46519
46439
  },
46520
46440
  task.logger,
46521
46441
  params.proxyLoc,
46522
- params.localIP,
46523
46442
  params.accountId,
46524
46443
  "weixin"
46525
46444
  ];
@@ -47298,7 +47217,6 @@ var __webpack_exports__ = {};
47298
47217
  enverionment: task.enverionment || "development",
47299
47218
  postId: params.articleId,
47300
47219
  eip: proxyHttp.proxyInfo,
47301
- proxyIp: params.localIP,
47302
47220
  accountId: params.accountId,
47303
47221
  uid: params.uid,
47304
47222
  platform: "weixin",
@@ -48103,16 +48021,11 @@ var __webpack_exports__ = {};
48103
48021
  const reporter = task.reportService?.reportLoginStatus ?? (()=>Promise.resolve());
48104
48022
  let executionState;
48105
48023
  let proxyUrl;
48106
- if (params.localIP) {
48107
- const args = [
48108
- params.localIP,
48109
- params.proxyLoc,
48110
- params.accountId
48111
- ];
48112
- task.logger?.info(`==> 开始获取代理信息:${args}`);
48024
+ if (params.proxyLoc) {
48025
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
48113
48026
  const ProxyAgentResult = await ProxyAgent({
48114
48027
  logger: task.logger
48115
- }, ...args);
48028
+ }, params.proxyLoc, params.accountId);
48116
48029
  task.logger?.info("==> 代理信息获取成功!");
48117
48030
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
48118
48031
  }
@@ -48429,7 +48342,6 @@ var __webpack_exports__ = {};
48429
48342
  },
48430
48343
  task.logger,
48431
48344
  params.proxyLoc,
48432
- params.localIP,
48433
48345
  params.accountId,
48434
48346
  "xiaohongshu"
48435
48347
  ];
@@ -48470,8 +48382,8 @@ var __webpack_exports__ = {};
48470
48382
  params: fetchCoverParams
48471
48383
  }, {
48472
48384
  retries: 3,
48473
- retryDelay: 20,
48474
- timeout: 3000
48385
+ retryDelay: 500,
48386
+ timeout: 30000
48475
48387
  });
48476
48388
  for (const item of batchCoverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item.fileIds)uploadInfos.push({
48477
48389
  bucket: item.bucket || "",
@@ -48490,8 +48402,8 @@ var __webpack_exports__ = {};
48490
48402
  params: fetchCoverParams
48491
48403
  }, {
48492
48404
  retries: 3,
48493
- retryDelay: 20,
48494
- timeout: 3000
48405
+ retryDelay: 500,
48406
+ timeout: 30000
48495
48407
  });
48496
48408
  for (const item of coverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item.fileIds)uploadInfos.push({
48497
48409
  bucket: item.bucket || "",
@@ -48552,7 +48464,9 @@ var __webpack_exports__ = {};
48552
48464
  headers: {
48553
48465
  "x-cos-security-token": ossToken
48554
48466
  },
48555
- defaultErrorMsg: "图片上传异常,请稍后重试发布。"
48467
+ defaultErrorMsg: "图片上传异常,请稍后重试。"
48468
+ }, {
48469
+ timeout: 60000
48556
48470
  });
48557
48471
  return {
48558
48472
  ossFileId,
@@ -48562,6 +48476,8 @@ var __webpack_exports__ = {};
48562
48476
  originSize
48563
48477
  };
48564
48478
  } catch (error) {
48479
+ const e = Http.handleApiError(error);
48480
+ 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
48481
  attempt++;
48566
48482
  }
48567
48483
  }
@@ -48795,7 +48711,6 @@ var __webpack_exports__ = {};
48795
48711
  enverionment: task.enverionment || "development",
48796
48712
  postId: params.articleId,
48797
48713
  eip: proxyHttp.proxyInfo,
48798
- proxyIp: params.localIP,
48799
48714
  accountId: params.accountId,
48800
48715
  uid: params.uid,
48801
48716
  platform: "xiaohongshu",
@@ -49057,16 +48972,11 @@ var __webpack_exports__ = {};
49057
48972
  return downloadImage(url, external_node_path_default().join(tmpCachePath, fileName));
49058
48973
  }));
49059
48974
  let proxyUrl;
49060
- if (params.localIP) {
49061
- const args = [
49062
- params.localIP,
49063
- params.proxyLoc,
49064
- params.accountId
49065
- ];
49066
- task.logger?.info(`==> 开始获取代理信息:${args}`);
48975
+ if (params.proxyLoc) {
48976
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
49067
48977
  const ProxyAgentResult = await ProxyAgent({
49068
48978
  logger: task.logger
49069
- }, ...args);
48979
+ }, params.proxyLoc, params.accountId);
49070
48980
  task.logger?.info("==> 代理信息获取成功!");
49071
48981
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
49072
48982
  }
@@ -49495,7 +49405,6 @@ var __webpack_exports__ = {};
49495
49405
  },
49496
49406
  task.logger,
49497
49407
  params.proxyLoc,
49498
- params.localIP,
49499
49408
  params.accountId,
49500
49409
  "xiaohongshu-rpa"
49501
49410
  ];
@@ -49541,8 +49450,8 @@ var __webpack_exports__ = {};
49541
49450
  params: fetchCoverParams
49542
49451
  }, {
49543
49452
  retries: 3,
49544
- retryDelay: 20,
49545
- timeout: 3000
49453
+ retryDelay: 500,
49454
+ timeout: 8000
49546
49455
  });
49547
49456
  for (const item of batchCoverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item?.fileIds ?? [])uploadInfos.push({
49548
49457
  bucket: item.bucket || "",
@@ -49561,8 +49470,8 @@ var __webpack_exports__ = {};
49561
49470
  params: fetchCoverParams
49562
49471
  }, {
49563
49472
  retries: 3,
49564
- retryDelay: 20,
49565
- timeout: 3000
49473
+ retryDelay: 500,
49474
+ timeout: 8000
49566
49475
  });
49567
49476
  for (const item of coverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item?.fileIds ?? [])uploadInfos.push({
49568
49477
  bucket: item.bucket || "",
@@ -49607,6 +49516,8 @@ var __webpack_exports__ = {};
49607
49516
  "x-cos-security-token": ossToken
49608
49517
  },
49609
49518
  defaultErrorMsg: "图片上传异常,请稍后重试发布。"
49519
+ }, {
49520
+ timeout: 60000
49610
49521
  });
49611
49522
  return {
49612
49523
  ossFileId,
@@ -49916,7 +49827,6 @@ var __webpack_exports__ = {};
49916
49827
  },
49917
49828
  _task.logger,
49918
49829
  params.proxyLoc,
49919
- params.localIP,
49920
49830
  params.accountId
49921
49831
  ];
49922
49832
  const http = new Http(...args);
@@ -50002,7 +49912,6 @@ var __webpack_exports__ = {};
50002
49912
  },
50003
49913
  _task.logger,
50004
49914
  params.proxyLoc,
50005
- params.localIP,
50006
49915
  params.accountId
50007
49916
  ];
50008
49917
  const http = new Http(...args);
@@ -50041,7 +49950,6 @@ var __webpack_exports__ = {};
50041
49950
  },
50042
49951
  _task.logger,
50043
49952
  params.proxyLoc,
50044
- params.localIP,
50045
49953
  params.accountId
50046
49954
  ];
50047
49955
  const http = new Http(...args);
@@ -50094,7 +50002,6 @@ var __webpack_exports__ = {};
50094
50002
  },
50095
50003
  _task.logger,
50096
50004
  params.proxyLoc,
50097
- params.localIP,
50098
50005
  params.accountId
50099
50006
  ];
50100
50007
  const http = new Http(...args);
@@ -50151,7 +50058,6 @@ var __webpack_exports__ = {};
50151
50058
  },
50152
50059
  _task.logger,
50153
50060
  params.proxyLoc,
50154
- params.localIP,
50155
50061
  params.accountId
50156
50062
  ];
50157
50063
  const http = new Http(...args);
@@ -50224,7 +50130,6 @@ var __webpack_exports__ = {};
50224
50130
  },
50225
50131
  _task.logger,
50226
50132
  params.proxyLoc,
50227
- params.localIP,
50228
50133
  params.accountId
50229
50134
  ];
50230
50135
  const http = new Http(...args);
@@ -50328,7 +50233,6 @@ var __webpack_exports__ = {};
50328
50233
  },
50329
50234
  _task.logger,
50330
50235
  params.proxyLoc,
50331
- params.localIP,
50332
50236
  params.accountId
50333
50237
  ];
50334
50238
  const http = new Http(...args);
@@ -50768,4 +50672,4 @@ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_targe
50768
50672
  });
50769
50673
 
50770
50674
  //# sourceMappingURL=bundle.js.map
50771
- //# debugId=c14c6f4b-c5da-5f46-9b34-50e166610ae4
50675
+ //# debugId=e1a74875-fb1a-57f5-b655-1374d18c5370