@iflyrpa/actions 4.0.6-beta.0 → 4.0.6-beta.1

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,4 +1,6 @@
1
1
  /*! For license information please see bundle.js.LICENSE.txt */
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]="ef37432b-1de8-5030-834a-59ecb3853f3c")}catch(e){}}();
2
4
  var __webpack_modules__ = {
3
5
  "../../node_modules/.pnpm/agent-base@7.1.4/node_modules/agent-base/dist/helpers.js": function(__unused_webpack_module, exports1, __webpack_require__) {
4
6
  "use strict";
@@ -12490,7 +12492,7 @@ var __webpack_exports__ = {};
12490
12492
  var package_namespaceObject = {
12491
12493
  i8: "0.1.2"
12492
12494
  };
12493
- var package_namespaceObject_0 = JSON.parse('{"i8":"4.0.6-beta.0"}');
12495
+ var package_namespaceObject_0 = JSON.parse('{"i8":"4.0.6-beta.1"}');
12494
12496
  const external_node_fs_namespaceObject = require("node:fs");
12495
12497
  var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
12496
12498
  const external_node_http_namespaceObject = require("node:http");
@@ -27124,15 +27126,14 @@ var __webpack_exports__ = {};
27124
27126
  }
27125
27127
  return `socks5h://${ip}:${port}`;
27126
27128
  }
27127
- async function ProxyAgent(task, ip, adr, accountId, refresh) {
27129
+ async function ProxyAgent(task, addr, accountId, refresh) {
27128
27130
  const http = new Http({
27129
27131
  headers: {
27130
27132
  "content-type": "application/json"
27131
27133
  }
27132
27134
  });
27133
27135
  const params = {
27134
- ip: ip,
27135
- addr: adr || null,
27136
+ addr: addr || null,
27136
27137
  accountId: accountId
27137
27138
  };
27138
27139
  const ProxyInfo = await http.api({
@@ -27154,7 +27155,7 @@ var __webpack_exports__ = {};
27154
27155
  data: ProxyInfo.data
27155
27156
  }
27156
27157
  };
27157
- 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);
27158
27159
  const proxyAgent = "000000" === ProxyInfo.code && ProxyInfo.data ? {
27159
27160
  ip: ProxyInfo.data.proxyIp,
27160
27161
  port: ProxyInfo.data.proxyPort,
@@ -27171,16 +27172,16 @@ var __webpack_exports__ = {};
27171
27172
  data: error
27172
27173
  };
27173
27174
  }
27174
- constructor(config, logger, adr, ip, accountId, platform){
27175
+ constructor(config, logger, addr, accountId, platform){
27175
27176
  this.agentPromise = void 0;
27176
27177
  this.apiClient = lib_axios.create({
27177
27178
  ...config
27178
27179
  });
27179
27180
  this.logger = logger;
27180
27181
  this.platform = platform;
27181
- if (ip) this.agentPromise = ProxyAgent({
27182
+ if (addr) this.agentPromise = ProxyAgent({
27182
27183
  logger
27183
- }, ip, adr, accountId);
27184
+ }, addr, accountId);
27184
27185
  this.addResponseInterceptor(()=>void 0);
27185
27186
  }
27186
27187
  clearResponseInterceptors() {
@@ -32308,16 +32309,11 @@ var __webpack_exports__ = {};
32308
32309
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
32309
32310
  let executionState;
32310
32311
  let proxyUrl;
32311
- if (params.localIP) {
32312
- const args = [
32313
- params.localIP,
32314
- params.proxyLoc,
32315
- params.accountId
32316
- ];
32317
- task.logger?.info(`==> 开始获取代理信息:${args}`);
32312
+ if (params.proxyLoc) {
32313
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
32318
32314
  const ProxyAgentResult = await ProxyAgent({
32319
32315
  logger: task.logger
32320
- }, ...args);
32316
+ }, params.proxyLoc, params.accountId);
32321
32317
  task.logger?.info("==> 代理信息获取成功!");
32322
32318
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
32323
32319
  }
@@ -32660,7 +32656,6 @@ var __webpack_exports__ = {};
32660
32656
  },
32661
32657
  task.logger,
32662
32658
  params.proxyLoc,
32663
- params.localIP,
32664
32659
  params.accountId,
32665
32660
  "baijiahao"
32666
32661
  ];
@@ -32866,7 +32861,6 @@ var __webpack_exports__ = {};
32866
32861
  enverionment: task.enverionment || "development",
32867
32862
  postId: params.articleId,
32868
32863
  eip: proxyHttp.proxyInfo,
32869
- proxyIp: params.localIP,
32870
32864
  accountId: params.accountId,
32871
32865
  uid: params.uid,
32872
32866
  platform: "baijiahao",
@@ -33385,7 +33379,6 @@ var __webpack_exports__ = {};
33385
33379
  },
33386
33380
  _task.logger,
33387
33381
  params.proxyLoc,
33388
- params.localIP,
33389
33382
  params.accountId
33390
33383
  ];
33391
33384
  const http = new Http(...args);
@@ -34515,7 +34508,7 @@ var __webpack_exports__ = {};
34515
34508
  heapTotal: `${Math.round(process.memoryUsage().heapTotal / 1024 / 1024)} MB`
34516
34509
  },
34517
34510
  accountId: params.accountId,
34518
- hasProxy: !!(params.proxyLoc || params.localIP)
34511
+ hasProxy: !!params.proxyLoc
34519
34512
  });
34520
34513
  }
34521
34514
  const check = {
@@ -34538,7 +34531,6 @@ var __webpack_exports__ = {};
34538
34531
  },
34539
34532
  _task.logger,
34540
34533
  params.proxyLoc,
34541
- params.localIP,
34542
34534
  params.accountId
34543
34535
  ];
34544
34536
  const http = new Http(...args);
@@ -34569,7 +34561,7 @@ var __webpack_exports__ = {};
34569
34561
  heapUsed: `${Math.round(process.memoryUsage().heapUsed / 1024 / 1024)} MB`,
34570
34562
  heapTotal: `${Math.round(process.memoryUsage().heapTotal / 1024 / 1024)} MB`
34571
34563
  },
34572
- hasProxy: !!(params.proxyLoc || params.localIP),
34564
+ hasProxy: !!params.proxyLoc,
34573
34565
  timeSinceLastLog: Date.now() - lastEnvLogTime
34574
34566
  }
34575
34567
  });
@@ -34967,7 +34959,6 @@ var __webpack_exports__ = {};
34967
34959
  },
34968
34960
  _task.logger,
34969
34961
  params.proxyLoc,
34970
- params.localIP,
34971
34962
  params.accountId
34972
34963
  ];
34973
34964
  const http = new Http(...args);
@@ -35054,7 +35045,6 @@ var __webpack_exports__ = {};
35054
35045
  },
35055
35046
  _task.logger,
35056
35047
  params.proxyLoc,
35057
- params.localIP,
35058
35048
  params.accountId
35059
35049
  ];
35060
35050
  const http = new Http(...args);
@@ -35145,7 +35135,6 @@ var __webpack_exports__ = {};
35145
35135
  },
35146
35136
  _task.logger,
35147
35137
  params.proxyLoc,
35148
- params.localIP,
35149
35138
  params.accountId
35150
35139
  ];
35151
35140
  const http = new Http(...args);
@@ -35231,7 +35220,6 @@ var __webpack_exports__ = {};
35231
35220
  },
35232
35221
  _task.logger,
35233
35222
  params.proxyLoc,
35234
- params.localIP,
35235
35223
  params.accountId
35236
35224
  ];
35237
35225
  const http = new Http(...args);
@@ -35315,7 +35303,6 @@ var __webpack_exports__ = {};
35315
35303
  },
35316
35304
  _task.logger,
35317
35305
  params.proxyLoc,
35318
- params.localIP,
35319
35306
  params.accountId
35320
35307
  ];
35321
35308
  const http = new Http(...args);
@@ -35411,7 +35398,6 @@ var __webpack_exports__ = {};
35411
35398
  },
35412
35399
  _task.logger,
35413
35400
  params.proxyLoc,
35414
- params.localIP,
35415
35401
  params.accountId
35416
35402
  ];
35417
35403
  const http = new Http(...args);
@@ -36062,7 +36048,6 @@ var __webpack_exports__ = {};
36062
36048
  },
36063
36049
  _task.logger,
36064
36050
  params.proxyLoc,
36065
- params.localIP,
36066
36051
  params.accountId
36067
36052
  ];
36068
36053
  const http = new Http(...args);
@@ -36208,7 +36193,6 @@ var __webpack_exports__ = {};
36208
36193
  },
36209
36194
  _task.logger,
36210
36195
  params.proxyLoc,
36211
- params.localIP,
36212
36196
  params.accountId
36213
36197
  ];
36214
36198
  const http = new Http(...args);
@@ -36296,7 +36280,6 @@ var __webpack_exports__ = {};
36296
36280
  },
36297
36281
  _task.logger,
36298
36282
  params.proxyLoc,
36299
- params.localIP,
36300
36283
  params.accountId
36301
36284
  ];
36302
36285
  const http = new Http(...args);
@@ -36384,7 +36367,6 @@ var __webpack_exports__ = {};
36384
36367
  },
36385
36368
  _task.logger,
36386
36369
  params.proxyLoc,
36387
- params.localIP,
36388
36370
  params.accountId
36389
36371
  ];
36390
36372
  const http = new Http(...args);
@@ -36605,7 +36587,6 @@ var __webpack_exports__ = {};
36605
36587
  },
36606
36588
  _task.logger,
36607
36589
  params.proxyLoc,
36608
- params.localIP,
36609
36590
  params.accountId
36610
36591
  ];
36611
36592
  const http = new Http(...args);
@@ -36967,16 +36948,11 @@ var __webpack_exports__ = {};
36967
36948
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
36968
36949
  let executionState;
36969
36950
  let proxyUrl;
36970
- if (params.localIP) {
36971
- const args = [
36972
- params.localIP,
36973
- params.proxyLoc,
36974
- params.accountId
36975
- ];
36976
- task.logger?.info(`==> 开始获取代理信息:${args}`);
36951
+ if (params.proxyLoc) {
36952
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
36977
36953
  const ProxyAgentResult = await ProxyAgent({
36978
36954
  logger: task.logger
36979
- }, ...args);
36955
+ }, params.proxyLoc, params.accountId);
36980
36956
  task.logger?.info("==> 代理信息获取成功!");
36981
36957
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
36982
36958
  }
@@ -38610,8 +38586,7 @@ var __webpack_exports__ = {};
38610
38586
  headers
38611
38587
  },
38612
38588
  task.logger,
38613
- "",
38614
- "",
38589
+ params.proxyLoc,
38615
38590
  params.accountId,
38616
38591
  "douyin"
38617
38592
  ];
@@ -38884,7 +38859,6 @@ var __webpack_exports__ = {};
38884
38859
  enverionment: task.enverionment || "development",
38885
38860
  postId: params.articleId,
38886
38861
  eip: proxyHttp.proxyInfo,
38887
- proxyIp: params.localIP,
38888
38862
  accountId: params.accountId,
38889
38863
  uid: params.uid,
38890
38864
  platform: "douyin",
@@ -39247,18 +39221,13 @@ var __webpack_exports__ = {};
39247
39221
  return downloadImage(url, external_node_path_default().join(tmpCachePath, fileName));
39248
39222
  }));
39249
39223
  let proxyUrl;
39250
- if (params.localIP) {
39251
- const args = [
39252
- params.localIP,
39253
- params.proxyLoc,
39254
- params.accountId
39255
- ];
39256
- task.logger?.info(`==> 开始获取代理信息:${args}`);
39257
- const proxyAgentResult = await ProxyAgent({
39224
+ if (params.proxyLoc) {
39225
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
39226
+ const ProxyAgentResult = await ProxyAgent({
39258
39227
  logger: task.logger
39259
- }, ...args);
39228
+ }, params.proxyLoc, params.accountId);
39260
39229
  task.logger?.info("==> 代理信息获取成功!");
39261
- proxyUrl = proxyAgentResult ? `http://${proxyAgentResult.ip}:${proxyAgentResult.port}` : void 0;
39230
+ proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
39262
39231
  }
39263
39232
  const commonCookies = {
39264
39233
  path: "/",
@@ -40215,7 +40184,6 @@ var __webpack_exports__ = {};
40215
40184
  },
40216
40185
  _task.logger,
40217
40186
  params.proxyLoc,
40218
- params.localIP,
40219
40187
  params.accountId
40220
40188
  ];
40221
40189
  const http = new Http(...args);
@@ -40273,7 +40241,6 @@ var __webpack_exports__ = {};
40273
40241
  },
40274
40242
  _task.logger,
40275
40243
  params.proxyLoc,
40276
- params.localIP,
40277
40244
  params.accountId
40278
40245
  ];
40279
40246
  const http = new Http(...args);
@@ -40320,7 +40287,6 @@ var __webpack_exports__ = {};
40320
40287
  },
40321
40288
  _task.logger,
40322
40289
  params.proxyLoc,
40323
- params.localIP,
40324
40290
  params.accountId
40325
40291
  ];
40326
40292
  const http = new Http(...args);
@@ -40381,7 +40347,6 @@ var __webpack_exports__ = {};
40381
40347
  },
40382
40348
  _task.logger,
40383
40349
  params.proxyLoc,
40384
- params.localIP,
40385
40350
  params.accountId
40386
40351
  ];
40387
40352
  const http = new Http(...args);
@@ -40474,7 +40439,6 @@ var __webpack_exports__ = {};
40474
40439
  },
40475
40440
  _task.logger,
40476
40441
  params.proxyLoc,
40477
- params.localIP,
40478
40442
  params.accountId
40479
40443
  ];
40480
40444
  const http = new Http(...args);
@@ -40581,7 +40545,6 @@ var __webpack_exports__ = {};
40581
40545
  },
40582
40546
  _task.logger,
40583
40547
  params.proxyLoc,
40584
- params.localIP,
40585
40548
  params.accountId
40586
40549
  ];
40587
40550
  const http = new Http(...args);
@@ -40812,7 +40775,6 @@ var __webpack_exports__ = {};
40812
40775
  },
40813
40776
  _task.logger,
40814
40777
  params.proxyLoc,
40815
- params.localIP,
40816
40778
  params.accountId
40817
40779
  ];
40818
40780
  const http = new Http(...args);
@@ -41145,7 +41107,6 @@ var __webpack_exports__ = {};
41145
41107
  },
41146
41108
  _task.logger,
41147
41109
  params.proxyLoc,
41148
- params.localIP,
41149
41110
  params.accountId
41150
41111
  ];
41151
41112
  const http = new Http(...args);
@@ -41251,7 +41212,6 @@ var __webpack_exports__ = {};
41251
41212
  },
41252
41213
  _task.logger,
41253
41214
  params.proxyLoc,
41254
- params.localIP,
41255
41215
  params.accountId
41256
41216
  ];
41257
41217
  const http = new Http(...args);
@@ -41716,7 +41676,6 @@ var __webpack_exports__ = {};
41716
41676
  },
41717
41677
  _task.logger,
41718
41678
  params.proxyLoc,
41719
- params.localIP,
41720
41679
  params.accountId
41721
41680
  ];
41722
41681
  const http = new Http(...args);
@@ -42047,7 +42006,6 @@ var __webpack_exports__ = {};
42047
42006
  },
42048
42007
  _task.logger,
42049
42008
  params.proxyLoc,
42050
- params.localIP,
42051
42009
  params.accountId
42052
42010
  ];
42053
42011
  const http = new Http(...args);
@@ -42100,7 +42058,6 @@ var __webpack_exports__ = {};
42100
42058
  },
42101
42059
  _task.logger,
42102
42060
  params.proxyLoc,
42103
- params.localIP,
42104
42061
  params.accountId
42105
42062
  ];
42106
42063
  const http = new Http(...args);
@@ -42153,7 +42110,6 @@ var __webpack_exports__ = {};
42153
42110
  },
42154
42111
  _task.logger,
42155
42112
  params.proxyLoc,
42156
- params.localIP,
42157
42113
  params.accountId
42158
42114
  ];
42159
42115
  const http = new Http(...args);
@@ -42200,7 +42156,6 @@ var __webpack_exports__ = {};
42200
42156
  },
42201
42157
  _task.logger,
42202
42158
  params.proxyLoc,
42203
- params.localIP,
42204
42159
  params.accountId
42205
42160
  ];
42206
42161
  const http = new Http(...args);
@@ -42239,7 +42194,6 @@ var __webpack_exports__ = {};
42239
42194
  },
42240
42195
  _task.logger,
42241
42196
  params.proxyLoc,
42242
- params.localIP,
42243
42197
  params.accountId
42244
42198
  ];
42245
42199
  const http = new Http(...args);
@@ -42301,7 +42255,6 @@ var __webpack_exports__ = {};
42301
42255
  },
42302
42256
  _task.logger,
42303
42257
  params.proxyLoc,
42304
- params.localIP,
42305
42258
  params.accountId
42306
42259
  ];
42307
42260
  const http = new Http(...args);
@@ -42358,7 +42311,6 @@ var __webpack_exports__ = {};
42358
42311
  },
42359
42312
  _task.logger,
42360
42313
  params.proxyLoc,
42361
- params.localIP,
42362
42314
  params.accountId
42363
42315
  ];
42364
42316
  const http = new Http(...args);
@@ -42444,7 +42396,6 @@ var __webpack_exports__ = {};
42444
42396
  },
42445
42397
  _task.logger,
42446
42398
  params.proxyLoc,
42447
- params.localIP,
42448
42399
  params.accountId
42449
42400
  ];
42450
42401
  const http = new Http(...args);
@@ -42532,7 +42483,6 @@ var __webpack_exports__ = {};
42532
42483
  },
42533
42484
  _task.logger,
42534
42485
  params.proxyLoc,
42535
- params.localIP,
42536
42486
  params.accountId
42537
42487
  ];
42538
42488
  const http = new Http(...args);
@@ -42642,7 +42592,6 @@ var __webpack_exports__ = {};
42642
42592
  },
42643
42593
  _task.logger,
42644
42594
  params.proxyLoc,
42645
- params.localIP,
42646
42595
  params.accountId
42647
42596
  ];
42648
42597
  const http = new Http(...args);
@@ -42920,16 +42869,11 @@ var __webpack_exports__ = {};
42920
42869
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
42921
42870
  let executionState;
42922
42871
  let proxyUrl;
42923
- if (params.localIP) {
42924
- const args = [
42925
- params.localIP,
42926
- params.proxyLoc,
42927
- params.accountId
42928
- ];
42929
- task.logger?.info(`==> 开始获取代理信息:${args}`);
42872
+ if (params.proxyLoc) {
42873
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
42930
42874
  const ProxyAgentResult = await ProxyAgent({
42931
42875
  logger: task.logger
42932
- }, ...args);
42876
+ }, params.proxyLoc, params.accountId);
42933
42877
  task.logger?.info("==> 代理信息获取成功!");
42934
42878
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
42935
42879
  }
@@ -43756,7 +43700,6 @@ var __webpack_exports__ = {};
43756
43700
  enverionment: confParams.enverionment || "development",
43757
43701
  postId: confParams.articleId,
43758
43702
  eip: proxyHttp.proxyInfo,
43759
- proxyIp: confParams.proxyIp,
43760
43703
  accountId: confParams.accountId,
43761
43704
  uid: confParams.uid,
43762
43705
  publishParams: publishData,
@@ -43783,7 +43726,6 @@ var __webpack_exports__ = {};
43783
43726
  },
43784
43727
  task.logger,
43785
43728
  params.proxyLoc,
43786
- params.localIP,
43787
43729
  params.accountId,
43788
43730
  "shipinhao"
43789
43731
  ];
@@ -43854,7 +43796,6 @@ var __webpack_exports__ = {};
43854
43796
  articleId: params.articleId,
43855
43797
  postId: params.articleId,
43856
43798
  eip: proxyHttp.proxyInfo,
43857
- proxyIp: params.localIP,
43858
43799
  accountId: params.accountId,
43859
43800
  uid: params.uid
43860
43801
  }, {
@@ -44241,16 +44182,11 @@ var __webpack_exports__ = {};
44241
44182
  return downloadImage(url, external_node_path_default().join(tmpCachePath, fileName));
44242
44183
  }));
44243
44184
  let proxyUrl;
44244
- if (params.localIP) {
44245
- const args = [
44246
- params.localIP,
44247
- params.proxyLoc,
44248
- params.accountId
44249
- ];
44250
- task.logger?.info(`==> 开始获取代理信息:${args}`);
44185
+ if (params.proxyLoc) {
44186
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
44251
44187
  const ProxyAgentResult = await ProxyAgent({
44252
44188
  logger: task.logger
44253
- }, ...args);
44189
+ }, params.proxyLoc, params.accountId);
44254
44190
  task.logger?.info("==> 代理信息获取成功!");
44255
44191
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
44256
44192
  }
@@ -44900,16 +44836,11 @@ var __webpack_exports__ = {};
44900
44836
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
44901
44837
  let executionState;
44902
44838
  let proxyUrl;
44903
- if (params.localIP) {
44904
- const args = [
44905
- params.localIP,
44906
- params.proxyLoc,
44907
- params.accountId
44908
- ];
44909
- task.logger?.info(`==> 开始获取代理信息:${args}`);
44839
+ if (params.proxyLoc) {
44840
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
44910
44841
  const ProxyAgentResult = await ProxyAgent({
44911
44842
  logger: task.logger
44912
- }, ...args);
44843
+ }, params.proxyLoc, params.accountId);
44913
44844
  task.logger?.info("==> 代理信息获取成功!");
44914
44845
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
44915
44846
  }
@@ -45160,7 +45091,6 @@ var __webpack_exports__ = {};
45160
45091
  },
45161
45092
  task.logger,
45162
45093
  params.proxyLoc,
45163
- params.localIP,
45164
45094
  params.accountId,
45165
45095
  "toutiao"
45166
45096
  ];
@@ -45358,7 +45288,6 @@ var __webpack_exports__ = {};
45358
45288
  enverionment: task.enverionment || "development",
45359
45289
  postId: params.articleId,
45360
45290
  eip: proxyHttp.proxyInfo,
45361
- proxyIp: params.localIP,
45362
45291
  accountId: params.accountId,
45363
45292
  uid: params.uid,
45364
45293
  platform: "toutiao",
@@ -45993,16 +45922,11 @@ var __webpack_exports__ = {};
45993
45922
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
45994
45923
  let executionState;
45995
45924
  let proxyUrl;
45996
- if (params.localIP) {
45997
- const args = [
45998
- params.localIP,
45999
- params.proxyLoc,
46000
- params.accountId
46001
- ];
46002
- task.logger?.info(`==> 开始获取代理信息:${args}`);
45925
+ if (params.proxyLoc) {
45926
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
46003
45927
  const ProxyAgentResult = await ProxyAgent({
46004
45928
  logger: task.logger
46005
- }, ...args);
45929
+ }, params.proxyLoc, params.accountId);
46006
45930
  task.logger?.info("==> 代理信息获取成功!");
46007
45931
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
46008
45932
  }
@@ -46494,7 +46418,6 @@ var __webpack_exports__ = {};
46494
46418
  },
46495
46419
  task.logger,
46496
46420
  params.proxyLoc,
46497
- params.localIP,
46498
46421
  params.accountId,
46499
46422
  "weixin"
46500
46423
  ];
@@ -47273,7 +47196,6 @@ var __webpack_exports__ = {};
47273
47196
  enverionment: task.enverionment || "development",
47274
47197
  postId: params.articleId,
47275
47198
  eip: proxyHttp.proxyInfo,
47276
- proxyIp: params.localIP,
47277
47199
  accountId: params.accountId,
47278
47200
  uid: params.uid,
47279
47201
  platform: "weixin",
@@ -48078,16 +48000,11 @@ var __webpack_exports__ = {};
48078
48000
  const reporter = task.reportService?.reportLoginStatus ?? (()=>Promise.resolve());
48079
48001
  let executionState;
48080
48002
  let proxyUrl;
48081
- if (params.localIP) {
48082
- const args = [
48083
- params.localIP,
48084
- params.proxyLoc,
48085
- params.accountId
48086
- ];
48087
- task.logger?.info(`==> 开始获取代理信息:${args}`);
48003
+ if (params.proxyLoc) {
48004
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
48088
48005
  const ProxyAgentResult = await ProxyAgent({
48089
48006
  logger: task.logger
48090
- }, ...args);
48007
+ }, params.proxyLoc, params.accountId);
48091
48008
  task.logger?.info("==> 代理信息获取成功!");
48092
48009
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
48093
48010
  }
@@ -48404,7 +48321,6 @@ var __webpack_exports__ = {};
48404
48321
  },
48405
48322
  task.logger,
48406
48323
  params.proxyLoc,
48407
- params.localIP,
48408
48324
  params.accountId,
48409
48325
  "xiaohongshu"
48410
48326
  ];
@@ -48774,7 +48690,6 @@ var __webpack_exports__ = {};
48774
48690
  enverionment: task.enverionment || "development",
48775
48691
  postId: params.articleId,
48776
48692
  eip: proxyHttp.proxyInfo,
48777
- proxyIp: params.localIP,
48778
48693
  accountId: params.accountId,
48779
48694
  uid: params.uid,
48780
48695
  platform: "xiaohongshu",
@@ -49036,16 +48951,11 @@ var __webpack_exports__ = {};
49036
48951
  return downloadImage(url, external_node_path_default().join(tmpCachePath, fileName));
49037
48952
  }));
49038
48953
  let proxyUrl;
49039
- if (params.localIP) {
49040
- const args = [
49041
- params.localIP,
49042
- params.proxyLoc,
49043
- params.accountId
49044
- ];
49045
- task.logger?.info(`==> 开始获取代理信息:${args}`);
48954
+ if (params.proxyLoc) {
48955
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
49046
48956
  const ProxyAgentResult = await ProxyAgent({
49047
48957
  logger: task.logger
49048
- }, ...args);
48958
+ }, params.proxyLoc, params.accountId);
49049
48959
  task.logger?.info("==> 代理信息获取成功!");
49050
48960
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
49051
48961
  }
@@ -49474,7 +49384,6 @@ var __webpack_exports__ = {};
49474
49384
  },
49475
49385
  task.logger,
49476
49386
  params.proxyLoc,
49477
- params.localIP,
49478
49387
  params.accountId,
49479
49388
  "xiaohongshu-rpa"
49480
49389
  ];
@@ -49897,7 +49806,6 @@ var __webpack_exports__ = {};
49897
49806
  },
49898
49807
  _task.logger,
49899
49808
  params.proxyLoc,
49900
- params.localIP,
49901
49809
  params.accountId
49902
49810
  ];
49903
49811
  const http = new Http(...args);
@@ -49983,7 +49891,6 @@ var __webpack_exports__ = {};
49983
49891
  },
49984
49892
  _task.logger,
49985
49893
  params.proxyLoc,
49986
- params.localIP,
49987
49894
  params.accountId
49988
49895
  ];
49989
49896
  const http = new Http(...args);
@@ -50022,7 +49929,6 @@ var __webpack_exports__ = {};
50022
49929
  },
50023
49930
  _task.logger,
50024
49931
  params.proxyLoc,
50025
- params.localIP,
50026
49932
  params.accountId
50027
49933
  ];
50028
49934
  const http = new Http(...args);
@@ -50075,7 +49981,6 @@ var __webpack_exports__ = {};
50075
49981
  },
50076
49982
  _task.logger,
50077
49983
  params.proxyLoc,
50078
- params.localIP,
50079
49984
  params.accountId
50080
49985
  ];
50081
49986
  const http = new Http(...args);
@@ -50132,7 +50037,6 @@ var __webpack_exports__ = {};
50132
50037
  },
50133
50038
  _task.logger,
50134
50039
  params.proxyLoc,
50135
- params.localIP,
50136
50040
  params.accountId
50137
50041
  ];
50138
50042
  const http = new Http(...args);
@@ -50205,7 +50109,6 @@ var __webpack_exports__ = {};
50205
50109
  },
50206
50110
  _task.logger,
50207
50111
  params.proxyLoc,
50208
- params.localIP,
50209
50112
  params.accountId
50210
50113
  ];
50211
50114
  const http = new Http(...args);
@@ -50309,7 +50212,6 @@ var __webpack_exports__ = {};
50309
50212
  },
50310
50213
  _task.logger,
50311
50214
  params.proxyLoc,
50312
- params.localIP,
50313
50215
  params.accountId
50314
50216
  ];
50315
50217
  const http = new Http(...args);
@@ -50748,4 +50650,5 @@ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_targe
50748
50650
  value: true
50749
50651
  });
50750
50652
 
50751
- //# sourceMappingURL=bundle.js.map
50653
+ //# sourceMappingURL=bundle.js.map
50654
+ //# debugId=ef37432b-1de8-5030-834a-59ecb3853f3c