@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.mjs 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]="c189d61d-9a94-5bff-b7c8-cf06b1e1a99a")}catch(e){}}();
1
3
  import * as __WEBPACK_EXTERNAL_MODULE_crypto__ from "crypto";
2
4
  import * as __WEBPACK_EXTERNAL_MODULE_fs__ from "fs";
3
5
  import * as __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_package_json_58ae5f06__ from "@iflyrpa/share/package.json";
@@ -4350,7 +4352,7 @@ function __webpack_require__(moduleId) {
4350
4352
  return module;
4351
4353
  };
4352
4354
  })();
4353
- var package_namespaceObject = JSON.parse('{"i8":"4.0.6-beta.0"}');
4355
+ var package_namespaceObject = JSON.parse('{"i8":"4.0.6-beta.1"}');
4354
4356
  const PROXY_CREDENTIALS = [
4355
4357
  {
4356
4358
  ip: "47.110.131.129",
@@ -4437,15 +4439,14 @@ function buildProxyUrl(ip, port) {
4437
4439
  }
4438
4440
  return `socks5h://${ip}:${port}`;
4439
4441
  }
4440
- async function ProxyAgent(task, ip, adr, accountId, refresh) {
4442
+ async function ProxyAgent(task, addr, accountId, refresh) {
4441
4443
  const http = new Http({
4442
4444
  headers: {
4443
4445
  "content-type": "application/json"
4444
4446
  }
4445
4447
  });
4446
4448
  const params = {
4447
- ip: ip,
4448
- addr: adr || null,
4449
+ addr: addr || null,
4449
4450
  accountId: accountId
4450
4451
  };
4451
4452
  const ProxyInfo = await http.api({
@@ -4467,7 +4468,7 @@ async function ProxyAgent(task, ip, adr, accountId, refresh) {
4467
4468
  data: ProxyInfo.data
4468
4469
  }
4469
4470
  };
4470
- task.logger?.info(`请求代理:区域:${params.addr}, IP:${params.ip}, AccountId:${params.accountId}, 返回代理信息: ${ProxyInfo.data ? `${ProxyInfo.data.proxyIp}:${ProxyInfo.data.proxyPort}` : "无可用代理"}`, loggerInfo);
4471
+ task.logger?.info(`请求代理:区域:${params.addr}, AccountId:${params.accountId}, 返回代理信息: ${ProxyInfo.data ? `${ProxyInfo.data.proxyIp}:${ProxyInfo.data.proxyPort}` : "无可用代理"}`, loggerInfo);
4471
4472
  const proxyAgent = "000000" === ProxyInfo.code && ProxyInfo.data ? {
4472
4473
  ip: ProxyInfo.data.proxyIp,
4473
4474
  port: ProxyInfo.data.proxyPort,
@@ -4484,16 +4485,16 @@ class Http {
4484
4485
  data: error
4485
4486
  };
4486
4487
  }
4487
- constructor(config, logger, adr, ip, accountId, platform){
4488
+ constructor(config, logger, addr, accountId, platform){
4488
4489
  this.agentPromise = void 0;
4489
4490
  this.apiClient = __WEBPACK_EXTERNAL_MODULE_axios__["default"].create({
4490
4491
  ...config
4491
4492
  });
4492
4493
  this.logger = logger;
4493
4494
  this.platform = platform;
4494
- if (ip) this.agentPromise = ProxyAgent({
4495
+ if (addr) this.agentPromise = ProxyAgent({
4495
4496
  logger
4496
- }, ip, adr, accountId);
4497
+ }, addr, accountId);
4497
4498
  this.addResponseInterceptor(()=>void 0);
4498
4499
  }
4499
4500
  clearResponseInterceptors() {
@@ -8651,16 +8652,11 @@ const rpaServer = async (task, params)=>{
8651
8652
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
8652
8653
  let executionState;
8653
8654
  let proxyUrl;
8654
- if (params.localIP) {
8655
- const args = [
8656
- params.localIP,
8657
- params.proxyLoc,
8658
- params.accountId
8659
- ];
8660
- task.logger?.info(`==> 开始获取代理信息:${args}`);
8655
+ if (params.proxyLoc) {
8656
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
8661
8657
  const ProxyAgentResult = await ProxyAgent({
8662
8658
  logger: task.logger
8663
- }, ...args);
8659
+ }, params.proxyLoc, params.accountId);
8664
8660
  task.logger?.info("==> 代理信息获取成功!");
8665
8661
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
8666
8662
  }
@@ -9003,7 +8999,6 @@ const mockAction = async (task, params)=>{
9003
8999
  },
9004
9000
  task.logger,
9005
9001
  params.proxyLoc,
9006
- params.localIP,
9007
9002
  params.accountId,
9008
9003
  "baijiahao"
9009
9004
  ];
@@ -9209,7 +9204,6 @@ const mockAction = async (task, params)=>{
9209
9204
  enverionment: task.enverionment || "development",
9210
9205
  postId: params.articleId,
9211
9206
  eip: proxyHttp.proxyInfo,
9212
- proxyIp: params.localIP,
9213
9207
  accountId: params.accountId,
9214
9208
  uid: params.uid,
9215
9209
  platform: "baijiahao",
@@ -9728,7 +9722,6 @@ const XhsFansExport = async (_task, params)=>{
9728
9722
  },
9729
9723
  _task.logger,
9730
9724
  params.proxyLoc,
9731
- params.localIP,
9732
9725
  params.accountId
9733
9726
  ];
9734
9727
  const http = new Http(...args);
@@ -10858,7 +10851,7 @@ const XhsSessionCheck = async (_task, params)=>{
10858
10851
  heapTotal: `${Math.round(process.memoryUsage().heapTotal / 1024 / 1024)} MB`
10859
10852
  },
10860
10853
  accountId: params.accountId,
10861
- hasProxy: !!(params.proxyLoc || params.localIP)
10854
+ hasProxy: !!params.proxyLoc
10862
10855
  });
10863
10856
  }
10864
10857
  const check = {
@@ -10881,7 +10874,6 @@ const XhsSessionCheck = async (_task, params)=>{
10881
10874
  },
10882
10875
  _task.logger,
10883
10876
  params.proxyLoc,
10884
- params.localIP,
10885
10877
  params.accountId
10886
10878
  ];
10887
10879
  const http = new Http(...args);
@@ -10912,7 +10904,7 @@ const XhsSessionCheck = async (_task, params)=>{
10912
10904
  heapUsed: `${Math.round(process.memoryUsage().heapUsed / 1024 / 1024)} MB`,
10913
10905
  heapTotal: `${Math.round(process.memoryUsage().heapTotal / 1024 / 1024)} MB`
10914
10906
  },
10915
- hasProxy: !!(params.proxyLoc || params.localIP),
10907
+ hasProxy: !!params.proxyLoc,
10916
10908
  timeSinceLastLog: Date.now() - lastEnvLogTime
10917
10909
  }
10918
10910
  });
@@ -11310,7 +11302,6 @@ const douyinCreateCommentReply = async (_task, params)=>{
11310
11302
  },
11311
11303
  _task.logger,
11312
11304
  params.proxyLoc,
11313
- params.localIP,
11314
11305
  params.accountId
11315
11306
  ];
11316
11307
  const http = new Http(...args);
@@ -11397,7 +11388,6 @@ const douyinGetCollection = async (_task, params)=>{
11397
11388
  },
11398
11389
  _task.logger,
11399
11390
  params.proxyLoc,
11400
- params.localIP,
11401
11391
  params.accountId
11402
11392
  ];
11403
11393
  const http = new Http(...args);
@@ -11488,7 +11478,6 @@ const douyinGetCommentList = async (_task, params)=>{
11488
11478
  },
11489
11479
  _task.logger,
11490
11480
  params.proxyLoc,
11491
- params.localIP,
11492
11481
  params.accountId
11493
11482
  ];
11494
11483
  const http = new Http(...args);
@@ -11574,7 +11563,6 @@ const douyinGetCommentReplyList = async (_task, params)=>{
11574
11563
  },
11575
11564
  _task.logger,
11576
11565
  params.proxyLoc,
11577
- params.localIP,
11578
11566
  params.accountId
11579
11567
  ];
11580
11568
  const http = new Http(...args);
@@ -11658,7 +11646,6 @@ const douyinGetHot = async (_task, params)=>{
11658
11646
  },
11659
11647
  _task.logger,
11660
11648
  params.proxyLoc,
11661
- params.localIP,
11662
11649
  params.accountId
11663
11650
  ];
11664
11651
  const http = new Http(...args);
@@ -11754,7 +11741,6 @@ const douyinGetLocation = async (_task, params)=>{
11754
11741
  },
11755
11742
  _task.logger,
11756
11743
  params.proxyLoc,
11757
- params.localIP,
11758
11744
  params.accountId
11759
11745
  ];
11760
11746
  const http = new Http(...args);
@@ -11853,7 +11839,6 @@ const douyinGetMusic = async (_task, params)=>{
11853
11839
  },
11854
11840
  _task.logger,
11855
11841
  params.proxyLoc,
11856
- params.localIP,
11857
11842
  params.accountId
11858
11843
  ];
11859
11844
  const http = new Http(...args);
@@ -11999,7 +11984,6 @@ const douyinGetMusicByCategory = async (_task, params)=>{
11999
11984
  },
12000
11985
  _task.logger,
12001
11986
  params.proxyLoc,
12002
- params.localIP,
12003
11987
  params.accountId
12004
11988
  ];
12005
11989
  const http = new Http(...args);
@@ -12087,7 +12071,6 @@ const douyinGetMusicCategory = async (_task, params)=>{
12087
12071
  },
12088
12072
  _task.logger,
12089
12073
  params.proxyLoc,
12090
- params.localIP,
12091
12074
  params.accountId
12092
12075
  ];
12093
12076
  const http = new Http(...args);
@@ -12175,7 +12158,6 @@ const douyinGetTopics = async (_task, params)=>{
12175
12158
  },
12176
12159
  _task.logger,
12177
12160
  params.proxyLoc,
12178
- params.localIP,
12179
12161
  params.accountId
12180
12162
  ];
12181
12163
  const http = new Http(...args);
@@ -12396,7 +12378,6 @@ const douyinGetWorkList = async (_task, params)=>{
12396
12378
  },
12397
12379
  _task.logger,
12398
12380
  params.proxyLoc,
12399
- params.localIP,
12400
12381
  params.accountId
12401
12382
  ];
12402
12383
  const http = new Http(...args);
@@ -12758,16 +12739,11 @@ const rpa_server_rpaServer = async (task, params)=>{
12758
12739
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
12759
12740
  let executionState;
12760
12741
  let proxyUrl;
12761
- if (params.localIP) {
12762
- const args = [
12763
- params.localIP,
12764
- params.proxyLoc,
12765
- params.accountId
12766
- ];
12767
- task.logger?.info(`==> 开始获取代理信息:${args}`);
12742
+ if (params.proxyLoc) {
12743
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
12768
12744
  const ProxyAgentResult = await ProxyAgent({
12769
12745
  logger: task.logger
12770
- }, ...args);
12746
+ }, params.proxyLoc, params.accountId);
12771
12747
  task.logger?.info("==> 代理信息获取成功!");
12772
12748
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
12773
12749
  }
@@ -13462,8 +13438,7 @@ const mock_mockAction = async (task, params)=>{
13462
13438
  headers
13463
13439
  },
13464
13440
  task.logger,
13465
- "",
13466
- "",
13441
+ params.proxyLoc,
13467
13442
  params.accountId,
13468
13443
  "douyin"
13469
13444
  ];
@@ -13736,7 +13711,6 @@ const mock_mockAction = async (task, params)=>{
13736
13711
  enverionment: task.enverionment || "development",
13737
13712
  postId: params.articleId,
13738
13713
  eip: proxyHttp.proxyInfo,
13739
- proxyIp: params.localIP,
13740
13714
  accountId: params.accountId,
13741
13715
  uid: params.uid,
13742
13716
  platform: "douyin",
@@ -14099,18 +14073,13 @@ const rpaAction_Server = async (task, params)=>{
14099
14073
  return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.downloadImage)(url, __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].join(tmpCachePath, fileName));
14100
14074
  }));
14101
14075
  let proxyUrl;
14102
- if (params.localIP) {
14103
- const args = [
14104
- params.localIP,
14105
- params.proxyLoc,
14106
- params.accountId
14107
- ];
14108
- task.logger?.info(`==> 开始获取代理信息:${args}`);
14109
- const proxyAgentResult = await ProxyAgent({
14076
+ if (params.proxyLoc) {
14077
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
14078
+ const ProxyAgentResult = await ProxyAgent({
14110
14079
  logger: task.logger
14111
- }, ...args);
14080
+ }, params.proxyLoc, params.accountId);
14112
14081
  task.logger?.info("==> 代理信息获取成功!");
14113
- proxyUrl = proxyAgentResult ? `http://${proxyAgentResult.ip}:${proxyAgentResult.port}` : void 0;
14082
+ proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
14114
14083
  }
14115
14084
  const commonCookies = {
14116
14085
  path: "/",
@@ -15067,7 +15036,6 @@ const getXhsCollection = async (_task, params)=>{
15067
15036
  },
15068
15037
  _task.logger,
15069
15038
  params.proxyLoc,
15070
- params.localIP,
15071
15039
  params.accountId
15072
15040
  ];
15073
15041
  const http = new Http(...args);
@@ -15125,7 +15093,6 @@ const getXhsGroup = async (_task, params)=>{
15125
15093
  },
15126
15094
  _task.logger,
15127
15095
  params.proxyLoc,
15128
- params.localIP,
15129
15096
  params.accountId
15130
15097
  ];
15131
15098
  const http = new Http(...args);
@@ -15172,7 +15139,6 @@ const getXhsHotTopic = async (_task, params)=>{
15172
15139
  },
15173
15140
  _task.logger,
15174
15141
  params.proxyLoc,
15175
- params.localIP,
15176
15142
  params.accountId
15177
15143
  ];
15178
15144
  const http = new Http(...args);
@@ -15233,7 +15199,6 @@ const getXhsUnreadCount = async (_task, params)=>{
15233
15199
  },
15234
15200
  _task.logger,
15235
15201
  params.proxyLoc,
15236
- params.localIP,
15237
15202
  params.accountId
15238
15203
  ];
15239
15204
  const http = new Http(...args);
@@ -15326,7 +15291,6 @@ async function getDouyinData(_task, params) {
15326
15291
  },
15327
15292
  _task.logger,
15328
15293
  params.proxyLoc,
15329
- params.localIP,
15330
15294
  params.accountId
15331
15295
  ];
15332
15296
  const http = new Http(...args);
@@ -15433,7 +15397,6 @@ async function getShipinhaoData(_task, params) {
15433
15397
  },
15434
15398
  _task.logger,
15435
15399
  params.proxyLoc,
15436
- params.localIP,
15437
15400
  params.accountId
15438
15401
  ];
15439
15402
  const http = new Http(...args);
@@ -15662,7 +15625,6 @@ async function getXiaohongshuData(_task, params) {
15662
15625
  },
15663
15626
  _task.logger,
15664
15627
  params.proxyLoc,
15665
- params.localIP,
15666
15628
  params.accountId
15667
15629
  ];
15668
15630
  const http = new Http(...args);
@@ -15995,7 +15957,6 @@ async function handleDouyinData(_task, params) {
15995
15957
  },
15996
15958
  _task.logger,
15997
15959
  params.proxyLoc,
15998
- params.localIP,
15999
15960
  params.accountId
16000
15961
  ];
16001
15962
  const http = new Http(...args);
@@ -16101,7 +16062,6 @@ async function handleShipinhaoData(_task, params) {
16101
16062
  },
16102
16063
  _task.logger,
16103
16064
  params.proxyLoc,
16104
- params.localIP,
16105
16065
  params.accountId
16106
16066
  ];
16107
16067
  const http = new Http(...args);
@@ -16564,7 +16524,6 @@ async function handleXiaohongshuData(_task, params) {
16564
16524
  },
16565
16525
  _task.logger,
16566
16526
  params.proxyLoc,
16567
- params.localIP,
16568
16527
  params.accountId
16569
16528
  ];
16570
16529
  const http = new Http(...args);
@@ -16895,7 +16854,6 @@ const searchXhsWebConnections = async (_task, params)=>{
16895
16854
  },
16896
16855
  _task.logger,
16897
16856
  params.proxyLoc,
16898
- params.localIP,
16899
16857
  params.accountId
16900
16858
  ];
16901
16859
  const http = new Http(...args);
@@ -16948,7 +16906,6 @@ const searchXhsWebLikes = async (_task, params)=>{
16948
16906
  },
16949
16907
  _task.logger,
16950
16908
  params.proxyLoc,
16951
- params.localIP,
16952
16909
  params.accountId
16953
16910
  ];
16954
16911
  const http = new Http(...args);
@@ -17001,7 +16958,6 @@ const searchXhsWebMentions = async (_task, params)=>{
17001
16958
  },
17002
16959
  _task.logger,
17003
16960
  params.proxyLoc,
17004
- params.localIP,
17005
16961
  params.accountId
17006
16962
  ];
17007
16963
  const http = new Http(...args);
@@ -17048,7 +17004,6 @@ const searchXiaohongshuLocation = async (_task, params)=>{
17048
17004
  },
17049
17005
  _task.logger,
17050
17006
  params.proxyLoc,
17051
- params.localIP,
17052
17007
  params.accountId
17053
17008
  ];
17054
17009
  const http = new Http(...args);
@@ -17087,7 +17042,6 @@ const searchXiaohongshuTopicList = async (_task, params)=>{
17087
17042
  },
17088
17043
  _task.logger,
17089
17044
  params.proxyLoc,
17090
- params.localIP,
17091
17045
  params.accountId
17092
17046
  ];
17093
17047
  const http = new Http(...args);
@@ -17149,7 +17103,6 @@ const searchXiaohongshuUserArticle = async (_task, params)=>{
17149
17103
  },
17150
17104
  _task.logger,
17151
17105
  params.proxyLoc,
17152
- params.localIP,
17153
17106
  params.accountId
17154
17107
  ];
17155
17108
  const http = new Http(...args);
@@ -17206,7 +17159,6 @@ const shipinhaoCheckLinkValidate = async (_task, params)=>{
17206
17159
  },
17207
17160
  _task.logger,
17208
17161
  params.proxyLoc,
17209
- params.localIP,
17210
17162
  params.accountId
17211
17163
  ];
17212
17164
  const http = new Http(...args);
@@ -17292,7 +17244,6 @@ const shipinhaoGetLocation = async (_task, params)=>{
17292
17244
  },
17293
17245
  _task.logger,
17294
17246
  params.proxyLoc,
17295
- params.localIP,
17296
17247
  params.accountId
17297
17248
  ];
17298
17249
  const http = new Http(...args);
@@ -17380,7 +17331,6 @@ const shipinhaoGetMsg = async (_task, params)=>{
17380
17331
  },
17381
17332
  _task.logger,
17382
17333
  params.proxyLoc,
17383
- params.localIP,
17384
17334
  params.accountId
17385
17335
  ];
17386
17336
  const http = new Http(...args);
@@ -17490,7 +17440,6 @@ const shipinhaoGetMsgImage = async (_task, params)=>{
17490
17440
  },
17491
17441
  _task.logger,
17492
17442
  params.proxyLoc,
17493
- params.localIP,
17494
17443
  params.accountId
17495
17444
  ];
17496
17445
  const http = new Http(...args);
@@ -17768,16 +17717,11 @@ const shipinhaoLogin_rpa_server_rpaServer = async (task, params)=>{
17768
17717
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
17769
17718
  let executionState;
17770
17719
  let proxyUrl;
17771
- if (params.localIP) {
17772
- const args = [
17773
- params.localIP,
17774
- params.proxyLoc,
17775
- params.accountId
17776
- ];
17777
- task.logger?.info(`==> 开始获取代理信息:${args}`);
17720
+ if (params.proxyLoc) {
17721
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
17778
17722
  const ProxyAgentResult = await ProxyAgent({
17779
17723
  logger: task.logger
17780
- }, ...args);
17724
+ }, params.proxyLoc, params.accountId);
17781
17725
  task.logger?.info("==> 代理信息获取成功!");
17782
17726
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
17783
17727
  }
@@ -18604,7 +18548,6 @@ async function publishDynamic(cookies, uin, fingerPrintDeviceId, aId, proxyHttp,
18604
18548
  enverionment: confParams.enverionment || "development",
18605
18549
  postId: confParams.articleId,
18606
18550
  eip: proxyHttp.proxyInfo,
18607
- proxyIp: confParams.proxyIp,
18608
18551
  accountId: confParams.accountId,
18609
18552
  uid: confParams.uid,
18610
18553
  publishParams: publishData,
@@ -18631,7 +18574,6 @@ const shipinhaoPublish_mock_mockAction = async (task, params)=>{
18631
18574
  },
18632
18575
  task.logger,
18633
18576
  params.proxyLoc,
18634
- params.localIP,
18635
18577
  params.accountId,
18636
18578
  "shipinhao"
18637
18579
  ];
@@ -18702,7 +18644,6 @@ const shipinhaoPublish_mock_mockAction = async (task, params)=>{
18702
18644
  articleId: params.articleId,
18703
18645
  postId: params.articleId,
18704
18646
  eip: proxyHttp.proxyInfo,
18705
- proxyIp: params.localIP,
18706
18647
  accountId: params.accountId,
18707
18648
  uid: params.uid
18708
18649
  }, {
@@ -19089,16 +19030,11 @@ const rpa_server_rpaAction_Server = async (task, params)=>{
19089
19030
  return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.downloadImage)(url, __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].join(tmpCachePath, fileName));
19090
19031
  }));
19091
19032
  let proxyUrl;
19092
- if (params.localIP) {
19093
- const args = [
19094
- params.localIP,
19095
- params.proxyLoc,
19096
- params.accountId
19097
- ];
19098
- task.logger?.info(`==> 开始获取代理信息:${args}`);
19033
+ if (params.proxyLoc) {
19034
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
19099
19035
  const ProxyAgentResult = await ProxyAgent({
19100
19036
  logger: task.logger
19101
- }, ...args);
19037
+ }, params.proxyLoc, params.accountId);
19102
19038
  task.logger?.info("==> 代理信息获取成功!");
19103
19039
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
19104
19040
  }
@@ -19748,16 +19684,11 @@ const toutiaoLogin_rpa_server_rpaServer = async (task, params)=>{
19748
19684
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
19749
19685
  let executionState;
19750
19686
  let proxyUrl;
19751
- if (params.localIP) {
19752
- const args = [
19753
- params.localIP,
19754
- params.proxyLoc,
19755
- params.accountId
19756
- ];
19757
- task.logger?.info(`==> 开始获取代理信息:${args}`);
19687
+ if (params.proxyLoc) {
19688
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
19758
19689
  const ProxyAgentResult = await ProxyAgent({
19759
19690
  logger: task.logger
19760
- }, ...args);
19691
+ }, params.proxyLoc, params.accountId);
19761
19692
  task.logger?.info("==> 代理信息获取成功!");
19762
19693
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
19763
19694
  }
@@ -20008,7 +19939,6 @@ const toutiaoPublish_mock_mockAction = async (task, params)=>{
20008
19939
  },
20009
19940
  task.logger,
20010
19941
  params.proxyLoc,
20011
- params.localIP,
20012
19942
  params.accountId,
20013
19943
  "toutiao"
20014
19944
  ];
@@ -20206,7 +20136,6 @@ const toutiaoPublish_mock_mockAction = async (task, params)=>{
20206
20136
  enverionment: task.enverionment || "development",
20207
20137
  postId: params.articleId,
20208
20138
  eip: proxyHttp.proxyInfo,
20209
- proxyIp: params.localIP,
20210
20139
  accountId: params.accountId,
20211
20140
  uid: params.uid,
20212
20141
  platform: "toutiao",
@@ -20841,16 +20770,11 @@ const weixinLogin_rpa_server_rpaServer = async (task, params)=>{
20841
20770
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
20842
20771
  let executionState;
20843
20772
  let proxyUrl;
20844
- if (params.localIP) {
20845
- const args = [
20846
- params.localIP,
20847
- params.proxyLoc,
20848
- params.accountId
20849
- ];
20850
- task.logger?.info(`==> 开始获取代理信息:${args}`);
20773
+ if (params.proxyLoc) {
20774
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
20851
20775
  const ProxyAgentResult = await ProxyAgent({
20852
20776
  logger: task.logger
20853
- }, ...args);
20777
+ }, params.proxyLoc, params.accountId);
20854
20778
  task.logger?.info("==> 代理信息获取成功!");
20855
20779
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
20856
20780
  }
@@ -21342,7 +21266,6 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
21342
21266
  },
21343
21267
  task.logger,
21344
21268
  params.proxyLoc,
21345
- params.localIP,
21346
21269
  params.accountId,
21347
21270
  "weixin"
21348
21271
  ];
@@ -22121,7 +22044,6 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
22121
22044
  enverionment: task.enverionment || "development",
22122
22045
  postId: params.articleId,
22123
22046
  eip: proxyHttp.proxyInfo,
22124
- proxyIp: params.localIP,
22125
22047
  accountId: params.accountId,
22126
22048
  uid: params.uid,
22127
22049
  platform: "weixin",
@@ -22926,16 +22848,11 @@ const xiaohongshuLogin_rpa_server_rpaServer = async (task, params)=>{
22926
22848
  const reporter = task.reportService?.reportLoginStatus ?? (()=>Promise.resolve());
22927
22849
  let executionState;
22928
22850
  let proxyUrl;
22929
- if (params.localIP) {
22930
- const args = [
22931
- params.localIP,
22932
- params.proxyLoc,
22933
- params.accountId
22934
- ];
22935
- task.logger?.info(`==> 开始获取代理信息:${args}`);
22851
+ if (params.proxyLoc) {
22852
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
22936
22853
  const ProxyAgentResult = await ProxyAgent({
22937
22854
  logger: task.logger
22938
- }, ...args);
22855
+ }, params.proxyLoc, params.accountId);
22939
22856
  task.logger?.info("==> 代理信息获取成功!");
22940
22857
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
22941
22858
  }
@@ -23252,7 +23169,6 @@ const xiaohongshuPublish_mock_mockAction = async (task, params)=>{
23252
23169
  },
23253
23170
  task.logger,
23254
23171
  params.proxyLoc,
23255
- params.localIP,
23256
23172
  params.accountId,
23257
23173
  "xiaohongshu"
23258
23174
  ];
@@ -23622,7 +23538,6 @@ const xiaohongshuPublish_mock_mockAction = async (task, params)=>{
23622
23538
  enverionment: task.enverionment || "development",
23623
23539
  postId: params.articleId,
23624
23540
  eip: proxyHttp.proxyInfo,
23625
- proxyIp: params.localIP,
23626
23541
  accountId: params.accountId,
23627
23542
  uid: params.uid,
23628
23543
  platform: "xiaohongshu",
@@ -23884,16 +23799,11 @@ const xiaohongshuPublish_rpa_server_rpaAction_Server = async (task, params)=>{
23884
23799
  return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.downloadImage)(url, __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].join(tmpCachePath, fileName));
23885
23800
  }));
23886
23801
  let proxyUrl;
23887
- if (params.localIP) {
23888
- const args = [
23889
- params.localIP,
23890
- params.proxyLoc,
23891
- params.accountId
23892
- ];
23893
- task.logger?.info(`==> 开始获取代理信息:${args}`);
23802
+ if (params.proxyLoc) {
23803
+ task.logger?.info(`==> 开始获取代理信息:${params}`);
23894
23804
  const ProxyAgentResult = await ProxyAgent({
23895
23805
  logger: task.logger
23896
- }, ...args);
23806
+ }, params.proxyLoc, params.accountId);
23897
23807
  task.logger?.info("==> 代理信息获取成功!");
23898
23808
  proxyUrl = ProxyAgentResult ? `http://${ProxyAgentResult.ip}:${ProxyAgentResult.port}` : void 0;
23899
23809
  }
@@ -24322,7 +24232,6 @@ const rpaAction_Server_Mock = async (task, params)=>{
24322
24232
  },
24323
24233
  task.logger,
24324
24234
  params.proxyLoc,
24325
- params.localIP,
24326
24235
  params.accountId,
24327
24236
  "xiaohongshu-rpa"
24328
24237
  ];
@@ -24745,7 +24654,6 @@ const xiaohongshuWebCommentAction = async (_task, params)=>{
24745
24654
  },
24746
24655
  _task.logger,
24747
24656
  params.proxyLoc,
24748
- params.localIP,
24749
24657
  params.accountId
24750
24658
  ];
24751
24659
  const http = new Http(...args);
@@ -24831,7 +24739,6 @@ const xiaohongshuWebIntimacySearch = async (_task, params)=>{
24831
24739
  },
24832
24740
  _task.logger,
24833
24741
  params.proxyLoc,
24834
- params.localIP,
24835
24742
  params.accountId
24836
24743
  ];
24837
24744
  const http = new Http(...args);
@@ -24870,7 +24777,6 @@ const xiaohongshuWebMsgRead = async (_task, params)=>{
24870
24777
  },
24871
24778
  _task.logger,
24872
24779
  params.proxyLoc,
24873
- params.localIP,
24874
24780
  params.accountId
24875
24781
  ];
24876
24782
  const http = new Http(...args);
@@ -24923,7 +24829,6 @@ const xiaohongshuWebMsgReply = async (_task, params)=>{
24923
24829
  },
24924
24830
  _task.logger,
24925
24831
  params.proxyLoc,
24926
- params.localIP,
24927
24832
  params.accountId
24928
24833
  ];
24929
24834
  const http = new Http(...args);
@@ -24980,7 +24885,6 @@ const xiaohongshuWebNoteFeed = async (_task, params)=>{
24980
24885
  },
24981
24886
  _task.logger,
24982
24887
  params.proxyLoc,
24983
- params.localIP,
24984
24888
  params.accountId
24985
24889
  ];
24986
24890
  const http = new Http(...args);
@@ -25053,7 +24957,6 @@ const xiaohongshuWebRelationAction = async (_task, params)=>{
25053
24957
  },
25054
24958
  _task.logger,
25055
24959
  params.proxyLoc,
25056
- params.localIP,
25057
24960
  params.accountId
25058
24961
  ];
25059
24962
  const http = new Http(...args);
@@ -25157,7 +25060,6 @@ const xiaohongshuWebSearch = async (_task, params)=>{
25157
25060
  },
25158
25061
  _task.logger,
25159
25062
  params.proxyLoc,
25160
- params.localIP,
25161
25063
  params.accountId
25162
25064
  ];
25163
25065
  const http = new Http(...args);
@@ -25592,4 +25494,5 @@ class Action {
25592
25494
  var __webpack_exports__version = package_namespaceObject.i8;
25593
25495
  export { Action, ActionCommonParamsSchema, BaijiahaoPublishParamsSchema, BetaFlag, CollectionDetailSchema, ConfigDataSchema, DouyinCheckVerifyQrCodeParamsSchema, DouyinCreateCommentReplyParamsSchema, DouyinGetCollectionParamsSchema, DouyinGetCommentListParamsSchema, DouyinGetCommentReplyListParamsSchema, DouyinGetHotParamsSchema, DouyinGetLocationParamsSchema, DouyinGetMusicByCategoryParamsSchema, DouyinGetMusicCategoryParamsSchema, DouyinGetMusicParamsSchema, DouyinGetTopicsParamsSchema, DouyinGetVerifyQrCodeParamsSchema, DouyinGetWorkListParamsSchema, DouyinPublishParamsSchema, FetchArticlesDataSchema, FetchArticlesParamsSchema, Http, ProxyAgent, SearchAccountInfoParamsSchema, SessionCheckResultSchema, ShipinhaoCheckLinkValidateParamsSchema, ShipinhaoGetLocationParamsSchema, ShipinhaoGetMsgParamsSchema, ShipinhaoPublishParamsSchema, ShipinhaoSendMsgParamsSchema, ToutiaoPublishParamsSchema, UnreadCountSchema, WeixinPublishParamsSchema, WxBjhSessionParamsSchema, XhsWebSearchParamsSchema, XiaohongshuPublishParamsSchema, bjhConfigDataSchema, douyinConfigDataSchema, getFileState, reportLogger, rpaAction_Server_Mock, shipinhaoConfigDataSchema, ttConfigDataSchema, wxConfigDataSchema, xhsConfigDataSchema, __webpack_exports__version as version };
25594
25496
 
25595
- //# sourceMappingURL=index.mjs.map
25497
+ //# sourceMappingURL=index.mjs.map
25498
+ //# debugId=c189d61d-9a94-5bff-b7c8-cf06b1e1a99a