@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/index.js CHANGED
@@ -1,3 +1,5 @@
1
+
2
+ !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]="6a453c21-67bd-5554-819f-0c24705e7164")}catch(e){}}();
1
3
  var __webpack_modules__ = {
2
4
  "./src/utils/XhsXsCommonEnc.js": function(module) {
3
5
  var encrypt_lookup = [
@@ -4400,7 +4402,7 @@ var __webpack_exports__ = {};
4400
4402
  });
4401
4403
  const package_json_namespaceObject = require("@iflyrpa/share/package.json");
4402
4404
  var package_json_default = /*#__PURE__*/ __webpack_require__.n(package_json_namespaceObject);
4403
- var package_namespaceObject = JSON.parse('{"i8":"4.0.6-beta.0"}');
4405
+ var package_namespaceObject = JSON.parse('{"i8":"4.0.6-beta.1"}');
4404
4406
  const share_namespaceObject = require("@iflyrpa/share");
4405
4407
  const external_node_fs_namespaceObject = require("node:fs");
4406
4408
  var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
@@ -4503,15 +4505,14 @@ var __webpack_exports__ = {};
4503
4505
  }
4504
4506
  return `socks5h://${ip}:${port}`;
4505
4507
  }
4506
- async function ProxyAgent(task, ip, adr, accountId, refresh) {
4508
+ async function ProxyAgent(task, addr, accountId, refresh) {
4507
4509
  const http = new Http({
4508
4510
  headers: {
4509
4511
  "content-type": "application/json"
4510
4512
  }
4511
4513
  });
4512
4514
  const params = {
4513
- ip: ip,
4514
- addr: adr || null,
4515
+ addr: addr || null,
4515
4516
  accountId: accountId
4516
4517
  };
4517
4518
  const ProxyInfo = await http.api({
@@ -4533,7 +4534,7 @@ var __webpack_exports__ = {};
4533
4534
  data: ProxyInfo.data
4534
4535
  }
4535
4536
  };
4536
- task.logger?.info(`请求代理:区域:${params.addr}, IP:${params.ip}, AccountId:${params.accountId}, 返回代理信息: ${ProxyInfo.data ? `${ProxyInfo.data.proxyIp}:${ProxyInfo.data.proxyPort}` : "无可用代理"}`, loggerInfo);
4537
+ task.logger?.info(`请求代理:区域:${params.addr}, AccountId:${params.accountId}, 返回代理信息: ${ProxyInfo.data ? `${ProxyInfo.data.proxyIp}:${ProxyInfo.data.proxyPort}` : "无可用代理"}`, loggerInfo);
4537
4538
  const proxyAgent = "000000" === ProxyInfo.code && ProxyInfo.data ? {
4538
4539
  ip: ProxyInfo.data.proxyIp,
4539
4540
  port: ProxyInfo.data.proxyPort,
@@ -4550,16 +4551,16 @@ var __webpack_exports__ = {};
4550
4551
  data: error
4551
4552
  };
4552
4553
  }
4553
- constructor(config, logger, adr, ip, accountId, platform){
4554
+ constructor(config, logger, addr, accountId, platform){
4554
4555
  this.agentPromise = void 0;
4555
4556
  this.apiClient = external_axios_default().create({
4556
4557
  ...config
4557
4558
  });
4558
4559
  this.logger = logger;
4559
4560
  this.platform = platform;
4560
- if (ip) this.agentPromise = ProxyAgent({
4561
+ if (addr) this.agentPromise = ProxyAgent({
4561
4562
  logger
4562
- }, ip, adr, accountId);
4563
+ }, addr, accountId);
4563
4564
  this.addResponseInterceptor(()=>void 0);
4564
4565
  }
4565
4566
  clearResponseInterceptors() {
@@ -8719,16 +8720,11 @@ var __webpack_exports__ = {};
8719
8720
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
8720
8721
  let executionState;
8721
8722
  let proxyUrl;
8722
- if (params.localIP) {
8723
- const args = [
8724
- params.localIP,
8725
- params.proxyLoc,
8726
- params.accountId
8727
- ];
8728
- task.logger?.info(`==> 开始获取代理信息:${args}`);
8723
+ if (params.proxyLoc) {
8724
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
8729
8725
  const ProxyAgentResult = await ProxyAgent({
8730
8726
  logger: task.logger
8731
- }, ...args);
8727
+ }, params.proxyLoc, params.accountId);
8732
8728
  task.logger?.info("==> 代理信息获取成功!");
8733
8729
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
8734
8730
  }
@@ -9073,7 +9069,6 @@ var __webpack_exports__ = {};
9073
9069
  },
9074
9070
  task.logger,
9075
9071
  params.proxyLoc,
9076
- params.localIP,
9077
9072
  params.accountId,
9078
9073
  "baijiahao"
9079
9074
  ];
@@ -9279,7 +9274,6 @@ var __webpack_exports__ = {};
9279
9274
  enverionment: task.enverionment || "development",
9280
9275
  postId: params.articleId,
9281
9276
  eip: proxyHttp.proxyInfo,
9282
- proxyIp: params.localIP,
9283
9277
  accountId: params.accountId,
9284
9278
  uid: params.uid,
9285
9279
  platform: "baijiahao",
@@ -9800,7 +9794,6 @@ var __webpack_exports__ = {};
9800
9794
  },
9801
9795
  _task.logger,
9802
9796
  params.proxyLoc,
9803
- params.localIP,
9804
9797
  params.accountId
9805
9798
  ];
9806
9799
  const http = new Http(...args);
@@ -10930,7 +10923,7 @@ var __webpack_exports__ = {};
10930
10923
  heapTotal: `${Math.round(process.memoryUsage().heapTotal / 1024 / 1024)} MB`
10931
10924
  },
10932
10925
  accountId: params.accountId,
10933
- hasProxy: !!(params.proxyLoc || params.localIP)
10926
+ hasProxy: !!params.proxyLoc
10934
10927
  });
10935
10928
  }
10936
10929
  const check = {
@@ -10953,7 +10946,6 @@ var __webpack_exports__ = {};
10953
10946
  },
10954
10947
  _task.logger,
10955
10948
  params.proxyLoc,
10956
- params.localIP,
10957
10949
  params.accountId
10958
10950
  ];
10959
10951
  const http = new Http(...args);
@@ -10984,7 +10976,7 @@ var __webpack_exports__ = {};
10984
10976
  heapUsed: `${Math.round(process.memoryUsage().heapUsed / 1024 / 1024)} MB`,
10985
10977
  heapTotal: `${Math.round(process.memoryUsage().heapTotal / 1024 / 1024)} MB`
10986
10978
  },
10987
- hasProxy: !!(params.proxyLoc || params.localIP),
10979
+ hasProxy: !!params.proxyLoc,
10988
10980
  timeSinceLastLog: Date.now() - lastEnvLogTime
10989
10981
  }
10990
10982
  });
@@ -11382,7 +11374,6 @@ var __webpack_exports__ = {};
11382
11374
  },
11383
11375
  _task.logger,
11384
11376
  params.proxyLoc,
11385
- params.localIP,
11386
11377
  params.accountId
11387
11378
  ];
11388
11379
  const http = new Http(...args);
@@ -11469,7 +11460,6 @@ var __webpack_exports__ = {};
11469
11460
  },
11470
11461
  _task.logger,
11471
11462
  params.proxyLoc,
11472
- params.localIP,
11473
11463
  params.accountId
11474
11464
  ];
11475
11465
  const http = new Http(...args);
@@ -11560,7 +11550,6 @@ var __webpack_exports__ = {};
11560
11550
  },
11561
11551
  _task.logger,
11562
11552
  params.proxyLoc,
11563
- params.localIP,
11564
11553
  params.accountId
11565
11554
  ];
11566
11555
  const http = new Http(...args);
@@ -11646,7 +11635,6 @@ var __webpack_exports__ = {};
11646
11635
  },
11647
11636
  _task.logger,
11648
11637
  params.proxyLoc,
11649
- params.localIP,
11650
11638
  params.accountId
11651
11639
  ];
11652
11640
  const http = new Http(...args);
@@ -11730,7 +11718,6 @@ var __webpack_exports__ = {};
11730
11718
  },
11731
11719
  _task.logger,
11732
11720
  params.proxyLoc,
11733
- params.localIP,
11734
11721
  params.accountId
11735
11722
  ];
11736
11723
  const http = new Http(...args);
@@ -11826,7 +11813,6 @@ var __webpack_exports__ = {};
11826
11813
  },
11827
11814
  _task.logger,
11828
11815
  params.proxyLoc,
11829
- params.localIP,
11830
11816
  params.accountId
11831
11817
  ];
11832
11818
  const http = new Http(...args);
@@ -11926,7 +11912,6 @@ var __webpack_exports__ = {};
11926
11912
  },
11927
11913
  _task.logger,
11928
11914
  params.proxyLoc,
11929
- params.localIP,
11930
11915
  params.accountId
11931
11916
  ];
11932
11917
  const http = new Http(...args);
@@ -12072,7 +12057,6 @@ var __webpack_exports__ = {};
12072
12057
  },
12073
12058
  _task.logger,
12074
12059
  params.proxyLoc,
12075
- params.localIP,
12076
12060
  params.accountId
12077
12061
  ];
12078
12062
  const http = new Http(...args);
@@ -12160,7 +12144,6 @@ var __webpack_exports__ = {};
12160
12144
  },
12161
12145
  _task.logger,
12162
12146
  params.proxyLoc,
12163
- params.localIP,
12164
12147
  params.accountId
12165
12148
  ];
12166
12149
  const http = new Http(...args);
@@ -12248,7 +12231,6 @@ var __webpack_exports__ = {};
12248
12231
  },
12249
12232
  _task.logger,
12250
12233
  params.proxyLoc,
12251
- params.localIP,
12252
12234
  params.accountId
12253
12235
  ];
12254
12236
  const http = new Http(...args);
@@ -12469,7 +12451,6 @@ var __webpack_exports__ = {};
12469
12451
  },
12470
12452
  _task.logger,
12471
12453
  params.proxyLoc,
12472
- params.localIP,
12473
12454
  params.accountId
12474
12455
  ];
12475
12456
  const http = new Http(...args);
@@ -12831,16 +12812,11 @@ var __webpack_exports__ = {};
12831
12812
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
12832
12813
  let executionState;
12833
12814
  let proxyUrl;
12834
- if (params.localIP) {
12835
- const args = [
12836
- params.localIP,
12837
- params.proxyLoc,
12838
- params.accountId
12839
- ];
12840
- task.logger?.info(`==> 开始获取代理信息:${args}`);
12815
+ if (params.proxyLoc) {
12816
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
12841
12817
  const ProxyAgentResult = await ProxyAgent({
12842
12818
  logger: task.logger
12843
- }, ...args);
12819
+ }, params.proxyLoc, params.accountId);
12844
12820
  task.logger?.info("==> 代理信息获取成功!");
12845
12821
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
12846
12822
  }
@@ -13539,8 +13515,7 @@ var __webpack_exports__ = {};
13539
13515
  headers
13540
13516
  },
13541
13517
  task.logger,
13542
- "",
13543
- "",
13518
+ params.proxyLoc,
13544
13519
  params.accountId,
13545
13520
  "douyin"
13546
13521
  ];
@@ -13813,7 +13788,6 @@ var __webpack_exports__ = {};
13813
13788
  enverionment: task.enverionment || "development",
13814
13789
  postId: params.articleId,
13815
13790
  eip: proxyHttp.proxyInfo,
13816
- proxyIp: params.localIP,
13817
13791
  accountId: params.accountId,
13818
13792
  uid: params.uid,
13819
13793
  platform: "douyin",
@@ -14176,18 +14150,13 @@ var __webpack_exports__ = {};
14176
14150
  return (0, share_namespaceObject.downloadImage)(url, external_node_path_default().join(tmpCachePath, fileName));
14177
14151
  }));
14178
14152
  let proxyUrl;
14179
- if (params.localIP) {
14180
- const args = [
14181
- params.localIP,
14182
- params.proxyLoc,
14183
- params.accountId
14184
- ];
14185
- task.logger?.info(`==> 开始获取代理信息:${args}`);
14186
- const proxyAgentResult = await ProxyAgent({
14153
+ if (params.proxyLoc) {
14154
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
14155
+ const ProxyAgentResult = await ProxyAgent({
14187
14156
  logger: task.logger
14188
- }, ...args);
14157
+ }, params.proxyLoc, params.accountId);
14189
14158
  task.logger?.info("==> 代理信息获取成功!");
14190
- proxyUrl = proxyAgentResult ? `http://${proxyAgentResult.ip}:${proxyAgentResult.port}` : void 0;
14159
+ proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
14191
14160
  }
14192
14161
  const commonCookies = {
14193
14162
  path: "/",
@@ -15144,7 +15113,6 @@ var __webpack_exports__ = {};
15144
15113
  },
15145
15114
  _task.logger,
15146
15115
  params.proxyLoc,
15147
- params.localIP,
15148
15116
  params.accountId
15149
15117
  ];
15150
15118
  const http = new Http(...args);
@@ -15202,7 +15170,6 @@ var __webpack_exports__ = {};
15202
15170
  },
15203
15171
  _task.logger,
15204
15172
  params.proxyLoc,
15205
- params.localIP,
15206
15173
  params.accountId
15207
15174
  ];
15208
15175
  const http = new Http(...args);
@@ -15249,7 +15216,6 @@ var __webpack_exports__ = {};
15249
15216
  },
15250
15217
  _task.logger,
15251
15218
  params.proxyLoc,
15252
- params.localIP,
15253
15219
  params.accountId
15254
15220
  ];
15255
15221
  const http = new Http(...args);
@@ -15310,7 +15276,6 @@ var __webpack_exports__ = {};
15310
15276
  },
15311
15277
  _task.logger,
15312
15278
  params.proxyLoc,
15313
- params.localIP,
15314
15279
  params.accountId
15315
15280
  ];
15316
15281
  const http = new Http(...args);
@@ -15403,7 +15368,6 @@ var __webpack_exports__ = {};
15403
15368
  },
15404
15369
  _task.logger,
15405
15370
  params.proxyLoc,
15406
- params.localIP,
15407
15371
  params.accountId
15408
15372
  ];
15409
15373
  const http = new Http(...args);
@@ -15510,7 +15474,6 @@ var __webpack_exports__ = {};
15510
15474
  },
15511
15475
  _task.logger,
15512
15476
  params.proxyLoc,
15513
- params.localIP,
15514
15477
  params.accountId
15515
15478
  ];
15516
15479
  const http = new Http(...args);
@@ -15741,7 +15704,6 @@ var __webpack_exports__ = {};
15741
15704
  },
15742
15705
  _task.logger,
15743
15706
  params.proxyLoc,
15744
- params.localIP,
15745
15707
  params.accountId
15746
15708
  ];
15747
15709
  const http = new Http(...args);
@@ -16074,7 +16036,6 @@ var __webpack_exports__ = {};
16074
16036
  },
16075
16037
  _task.logger,
16076
16038
  params.proxyLoc,
16077
- params.localIP,
16078
16039
  params.accountId
16079
16040
  ];
16080
16041
  const http = new Http(...args);
@@ -16180,7 +16141,6 @@ var __webpack_exports__ = {};
16180
16141
  },
16181
16142
  _task.logger,
16182
16143
  params.proxyLoc,
16183
- params.localIP,
16184
16144
  params.accountId
16185
16145
  ];
16186
16146
  const http = new Http(...args);
@@ -16645,7 +16605,6 @@ var __webpack_exports__ = {};
16645
16605
  },
16646
16606
  _task.logger,
16647
16607
  params.proxyLoc,
16648
- params.localIP,
16649
16608
  params.accountId
16650
16609
  ];
16651
16610
  const http = new Http(...args);
@@ -16976,7 +16935,6 @@ var __webpack_exports__ = {};
16976
16935
  },
16977
16936
  _task.logger,
16978
16937
  params.proxyLoc,
16979
- params.localIP,
16980
16938
  params.accountId
16981
16939
  ];
16982
16940
  const http = new Http(...args);
@@ -17029,7 +16987,6 @@ var __webpack_exports__ = {};
17029
16987
  },
17030
16988
  _task.logger,
17031
16989
  params.proxyLoc,
17032
- params.localIP,
17033
16990
  params.accountId
17034
16991
  ];
17035
16992
  const http = new Http(...args);
@@ -17082,7 +17039,6 @@ var __webpack_exports__ = {};
17082
17039
  },
17083
17040
  _task.logger,
17084
17041
  params.proxyLoc,
17085
- params.localIP,
17086
17042
  params.accountId
17087
17043
  ];
17088
17044
  const http = new Http(...args);
@@ -17129,7 +17085,6 @@ var __webpack_exports__ = {};
17129
17085
  },
17130
17086
  _task.logger,
17131
17087
  params.proxyLoc,
17132
- params.localIP,
17133
17088
  params.accountId
17134
17089
  ];
17135
17090
  const http = new Http(...args);
@@ -17168,7 +17123,6 @@ var __webpack_exports__ = {};
17168
17123
  },
17169
17124
  _task.logger,
17170
17125
  params.proxyLoc,
17171
- params.localIP,
17172
17126
  params.accountId
17173
17127
  ];
17174
17128
  const http = new Http(...args);
@@ -17230,7 +17184,6 @@ var __webpack_exports__ = {};
17230
17184
  },
17231
17185
  _task.logger,
17232
17186
  params.proxyLoc,
17233
- params.localIP,
17234
17187
  params.accountId
17235
17188
  ];
17236
17189
  const http = new Http(...args);
@@ -17287,7 +17240,6 @@ var __webpack_exports__ = {};
17287
17240
  },
17288
17241
  _task.logger,
17289
17242
  params.proxyLoc,
17290
- params.localIP,
17291
17243
  params.accountId
17292
17244
  ];
17293
17245
  const http = new Http(...args);
@@ -17373,7 +17325,6 @@ var __webpack_exports__ = {};
17373
17325
  },
17374
17326
  _task.logger,
17375
17327
  params.proxyLoc,
17376
- params.localIP,
17377
17328
  params.accountId
17378
17329
  ];
17379
17330
  const http = new Http(...args);
@@ -17461,7 +17412,6 @@ var __webpack_exports__ = {};
17461
17412
  },
17462
17413
  _task.logger,
17463
17414
  params.proxyLoc,
17464
- params.localIP,
17465
17415
  params.accountId
17466
17416
  ];
17467
17417
  const http = new Http(...args);
@@ -17571,7 +17521,6 @@ var __webpack_exports__ = {};
17571
17521
  },
17572
17522
  _task.logger,
17573
17523
  params.proxyLoc,
17574
- params.localIP,
17575
17524
  params.accountId
17576
17525
  ];
17577
17526
  const http = new Http(...args);
@@ -17849,16 +17798,11 @@ var __webpack_exports__ = {};
17849
17798
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
17850
17799
  let executionState;
17851
17800
  let proxyUrl;
17852
- if (params.localIP) {
17853
- const args = [
17854
- params.localIP,
17855
- params.proxyLoc,
17856
- params.accountId
17857
- ];
17858
- task.logger?.info(`==> 开始获取代理信息:${args}`);
17801
+ if (params.proxyLoc) {
17802
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
17859
17803
  const ProxyAgentResult = await ProxyAgent({
17860
17804
  logger: task.logger
17861
- }, ...args);
17805
+ }, params.proxyLoc, params.accountId);
17862
17806
  task.logger?.info("==> 代理信息获取成功!");
17863
17807
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
17864
17808
  }
@@ -18685,7 +18629,6 @@ var __webpack_exports__ = {};
18685
18629
  enverionment: confParams.enverionment || "development",
18686
18630
  postId: confParams.articleId,
18687
18631
  eip: proxyHttp.proxyInfo,
18688
- proxyIp: confParams.proxyIp,
18689
18632
  accountId: confParams.accountId,
18690
18633
  uid: confParams.uid,
18691
18634
  publishParams: publishData,
@@ -18712,7 +18655,6 @@ var __webpack_exports__ = {};
18712
18655
  },
18713
18656
  task.logger,
18714
18657
  params.proxyLoc,
18715
- params.localIP,
18716
18658
  params.accountId,
18717
18659
  "shipinhao"
18718
18660
  ];
@@ -18783,7 +18725,6 @@ var __webpack_exports__ = {};
18783
18725
  articleId: params.articleId,
18784
18726
  postId: params.articleId,
18785
18727
  eip: proxyHttp.proxyInfo,
18786
- proxyIp: params.localIP,
18787
18728
  accountId: params.accountId,
18788
18729
  uid: params.uid
18789
18730
  }, {
@@ -19170,16 +19111,11 @@ var __webpack_exports__ = {};
19170
19111
  return (0, share_namespaceObject.downloadImage)(url, external_node_path_default().join(tmpCachePath, fileName));
19171
19112
  }));
19172
19113
  let proxyUrl;
19173
- if (params.localIP) {
19174
- const args = [
19175
- params.localIP,
19176
- params.proxyLoc,
19177
- params.accountId
19178
- ];
19179
- task.logger?.info(`==> 开始获取代理信息:${args}`);
19114
+ if (params.proxyLoc) {
19115
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
19180
19116
  const ProxyAgentResult = await ProxyAgent({
19181
19117
  logger: task.logger
19182
- }, ...args);
19118
+ }, params.proxyLoc, params.accountId);
19183
19119
  task.logger?.info("==> 代理信息获取成功!");
19184
19120
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
19185
19121
  }
@@ -19829,16 +19765,11 @@ var __webpack_exports__ = {};
19829
19765
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
19830
19766
  let executionState;
19831
19767
  let proxyUrl;
19832
- if (params.localIP) {
19833
- const args = [
19834
- params.localIP,
19835
- params.proxyLoc,
19836
- params.accountId
19837
- ];
19838
- task.logger?.info(`==> 开始获取代理信息:${args}`);
19768
+ if (params.proxyLoc) {
19769
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
19839
19770
  const ProxyAgentResult = await ProxyAgent({
19840
19771
  logger: task.logger
19841
- }, ...args);
19772
+ }, params.proxyLoc, params.accountId);
19842
19773
  task.logger?.info("==> 代理信息获取成功!");
19843
19774
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
19844
19775
  }
@@ -20089,7 +20020,6 @@ var __webpack_exports__ = {};
20089
20020
  },
20090
20021
  task.logger,
20091
20022
  params.proxyLoc,
20092
- params.localIP,
20093
20023
  params.accountId,
20094
20024
  "toutiao"
20095
20025
  ];
@@ -20287,7 +20217,6 @@ var __webpack_exports__ = {};
20287
20217
  enverionment: task.enverionment || "development",
20288
20218
  postId: params.articleId,
20289
20219
  eip: proxyHttp.proxyInfo,
20290
- proxyIp: params.localIP,
20291
20220
  accountId: params.accountId,
20292
20221
  uid: params.uid,
20293
20222
  platform: "toutiao",
@@ -20922,16 +20851,11 @@ var __webpack_exports__ = {};
20922
20851
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
20923
20852
  let executionState;
20924
20853
  let proxyUrl;
20925
- if (params.localIP) {
20926
- const args = [
20927
- params.localIP,
20928
- params.proxyLoc,
20929
- params.accountId
20930
- ];
20931
- task.logger?.info(`==> 开始获取代理信息:${args}`);
20854
+ if (params.proxyLoc) {
20855
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
20932
20856
  const ProxyAgentResult = await ProxyAgent({
20933
20857
  logger: task.logger
20934
- }, ...args);
20858
+ }, params.proxyLoc, params.accountId);
20935
20859
  task.logger?.info("==> 代理信息获取成功!");
20936
20860
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
20937
20861
  }
@@ -21423,7 +21347,6 @@ var __webpack_exports__ = {};
21423
21347
  },
21424
21348
  task.logger,
21425
21349
  params.proxyLoc,
21426
- params.localIP,
21427
21350
  params.accountId,
21428
21351
  "weixin"
21429
21352
  ];
@@ -22202,7 +22125,6 @@ var __webpack_exports__ = {};
22202
22125
  enverionment: task.enverionment || "development",
22203
22126
  postId: params.articleId,
22204
22127
  eip: proxyHttp.proxyInfo,
22205
- proxyIp: params.localIP,
22206
22128
  accountId: params.accountId,
22207
22129
  uid: params.uid,
22208
22130
  platform: "weixin",
@@ -23007,16 +22929,11 @@ var __webpack_exports__ = {};
23007
22929
  const reporter = task.reportService?.reportLoginStatus ?? (()=>Promise.resolve());
23008
22930
  let executionState;
23009
22931
  let proxyUrl;
23010
- if (params.localIP) {
23011
- const args = [
23012
- params.localIP,
23013
- params.proxyLoc,
23014
- params.accountId
23015
- ];
23016
- task.logger?.info(`==> 开始获取代理信息:${args}`);
22932
+ if (params.proxyLoc) {
22933
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
23017
22934
  const ProxyAgentResult = await ProxyAgent({
23018
22935
  logger: task.logger
23019
- }, ...args);
22936
+ }, params.proxyLoc, params.accountId);
23020
22937
  task.logger?.info("==> 代理信息获取成功!");
23021
22938
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
23022
22939
  }
@@ -23333,7 +23250,6 @@ var __webpack_exports__ = {};
23333
23250
  },
23334
23251
  task.logger,
23335
23252
  params.proxyLoc,
23336
- params.localIP,
23337
23253
  params.accountId,
23338
23254
  "xiaohongshu"
23339
23255
  ];
@@ -23703,7 +23619,6 @@ var __webpack_exports__ = {};
23703
23619
  enverionment: task.enverionment || "development",
23704
23620
  postId: params.articleId,
23705
23621
  eip: proxyHttp.proxyInfo,
23706
- proxyIp: params.localIP,
23707
23622
  accountId: params.accountId,
23708
23623
  uid: params.uid,
23709
23624
  platform: "xiaohongshu",
@@ -23965,16 +23880,11 @@ var __webpack_exports__ = {};
23965
23880
  return (0, share_namespaceObject.downloadImage)(url, external_node_path_default().join(tmpCachePath, fileName));
23966
23881
  }));
23967
23882
  let proxyUrl;
23968
- if (params.localIP) {
23969
- const args = [
23970
- params.localIP,
23971
- params.proxyLoc,
23972
- params.accountId
23973
- ];
23974
- task.logger?.info(`==> 开始获取代理信息:${args}`);
23883
+ if (params.proxyLoc) {
23884
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
23975
23885
  const ProxyAgentResult = await ProxyAgent({
23976
23886
  logger: task.logger
23977
- }, ...args);
23887
+ }, params.proxyLoc, params.accountId);
23978
23888
  task.logger?.info("==> 代理信息获取成功!");
23979
23889
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
23980
23890
  }
@@ -24403,7 +24313,6 @@ var __webpack_exports__ = {};
24403
24313
  },
24404
24314
  task.logger,
24405
24315
  params.proxyLoc,
24406
- params.localIP,
24407
24316
  params.accountId,
24408
24317
  "xiaohongshu-rpa"
24409
24318
  ];
@@ -24826,7 +24735,6 @@ var __webpack_exports__ = {};
24826
24735
  },
24827
24736
  _task.logger,
24828
24737
  params.proxyLoc,
24829
- params.localIP,
24830
24738
  params.accountId
24831
24739
  ];
24832
24740
  const http = new Http(...args);
@@ -24912,7 +24820,6 @@ var __webpack_exports__ = {};
24912
24820
  },
24913
24821
  _task.logger,
24914
24822
  params.proxyLoc,
24915
- params.localIP,
24916
24823
  params.accountId
24917
24824
  ];
24918
24825
  const http = new Http(...args);
@@ -24951,7 +24858,6 @@ var __webpack_exports__ = {};
24951
24858
  },
24952
24859
  _task.logger,
24953
24860
  params.proxyLoc,
24954
- params.localIP,
24955
24861
  params.accountId
24956
24862
  ];
24957
24863
  const http = new Http(...args);
@@ -25004,7 +24910,6 @@ var __webpack_exports__ = {};
25004
24910
  },
25005
24911
  _task.logger,
25006
24912
  params.proxyLoc,
25007
- params.localIP,
25008
24913
  params.accountId
25009
24914
  ];
25010
24915
  const http = new Http(...args);
@@ -25061,7 +24966,6 @@ var __webpack_exports__ = {};
25061
24966
  },
25062
24967
  _task.logger,
25063
24968
  params.proxyLoc,
25064
- params.localIP,
25065
24969
  params.accountId
25066
24970
  ];
25067
24971
  const http = new Http(...args);
@@ -25134,7 +25038,6 @@ var __webpack_exports__ = {};
25134
25038
  },
25135
25039
  _task.logger,
25136
25040
  params.proxyLoc,
25137
- params.localIP,
25138
25041
  params.accountId
25139
25042
  ];
25140
25043
  const http = new Http(...args);
@@ -25238,7 +25141,6 @@ var __webpack_exports__ = {};
25238
25141
  },
25239
25142
  _task.logger,
25240
25143
  params.proxyLoc,
25241
- params.localIP,
25242
25144
  params.accountId
25243
25145
  ];
25244
25146
  const http = new Http(...args);
@@ -25677,4 +25579,5 @@ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_targe
25677
25579
  value: true
25678
25580
  });
25679
25581
 
25680
- //# sourceMappingURL=index.js.map
25582
+ //# sourceMappingURL=index.js.map
25583
+ //# debugId=6a453c21-67bd-5554-819f-0c24705e7164