@iflyrpa/actions 1.2.24-beta.7 → 1.2.24-beta.9

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
@@ -2874,7 +2874,7 @@ const ProxyAgent = async (adr, huiwenToken)=>{
2874
2874
  const http = new Http({});
2875
2875
  let ProxyInfo = await http.api({
2876
2876
  method: "GET",
2877
- url: "https://fetdev.iflysec.com/api/publish/zdy/ip",
2877
+ url: "https://preview.huiwen.top/api/publish/zdy/ip",
2878
2878
  params: {
2879
2879
  addr: adr
2880
2880
  },
@@ -2884,7 +2884,6 @@ const ProxyAgent = async (adr, huiwenToken)=>{
2884
2884
  }
2885
2885
  } : null
2886
2886
  });
2887
- console.log("代理获取状态:", ProxyInfo.msg, "代理返回信息:", JSON.stringify(ProxyInfo.data[0]));
2888
2887
  return 0 === ProxyInfo.code && ProxyInfo.data.length > 0 ? new dist.HttpsProxyAgent(`http://${ProxyData.api}:${ProxyData.akey}@${ProxyInfo.data[0].proxyAddress}`) : null;
2889
2888
  };
2890
2889
  class Http {
@@ -2947,15 +2946,6 @@ class Http {
2947
2946
  httpsAgent: agent
2948
2947
  } : {}
2949
2948
  });
2950
- let proxyInfo;
2951
- if (agent && agent.proxy) {
2952
- const proxy = agent.proxy;
2953
- proxyInfo = {
2954
- host: proxy.host,
2955
- port: proxy.port
2956
- };
2957
- }
2958
- if (this.adr && agent) response.data.proxyInfo = proxyInfo;
2959
2949
  return response.data;
2960
2950
  } catch (error) {
2961
2951
  return Promise.reject(Http.handleApiError(error));
@@ -3319,7 +3309,7 @@ const mockAction = async (task, params)=>{
3319
3309
  },
3320
3310
  defaultErrorMsg: isDraft ? "文章同步出现异常,请稍后重试。" : "文章发布出现异常,请稍后重试。"
3321
3311
  });
3322
- return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(0 == res.errno ? res?.ret?.article_id || '' : "", 0 == res.errno ? `文章发布成功!${res.proxyInfo ? JSON.stringify(res.proxyInfo) : null}` : res.errmsg || '文章发布失败,请稍后重试。');
3312
+ return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(0 == res.errno ? res?.ret?.article_id || '' : "", 0 == res.errno ? `文章发布成功!` : res.errmsg ?? '文章发布失败,请稍后重试。');
3323
3313
  };
3324
3314
  const rpaAction = async (task, params)=>{
3325
3315
  const tmpCachePath = task.getTmpPath();
@@ -4356,7 +4346,7 @@ const mock_mockAction = async (task, params)=>{
4356
4346
  headers
4357
4347
  }, params.proxyLoc, params.huiwenToken) : http;
4358
4348
  const publishResult = await proxyHttp.api(publishOption);
4359
- return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(publishResult.data.pgc_id, `文章发布成功!${JSON.stringify(publishResult.proxyInfo)}`);
4349
+ return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(publishResult.data.pgc_id, `文章发布成功!`);
4360
4350
  };
4361
4351
  const rpa_GenAB = __webpack_require__("./src/utils/ttABEncrypt.js");
4362
4352
  const rpa_rpaAction = async (task, params)=>{
@@ -6291,7 +6281,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
6291
6281
  const proxyHttp = task?.isBeta ?? false ? new Http({
6292
6282
  headers
6293
6283
  }, params.proxyLoc, params.huiwenToken) : http;
6294
- const massData = await proxyHttp.api({
6284
+ await proxyHttp.api({
6295
6285
  method: "post",
6296
6286
  url: "https://mp.weixin.qq.com/cgi-bin/masssend",
6297
6287
  params: {
@@ -6340,7 +6330,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
6340
6330
  }),
6341
6331
  defaultErrorMsg: params.masssend ? "文章群发异常,请尝试关闭群发或稍后重试。" : "文章发布异常,请稍后重试。"
6342
6332
  });
6343
- return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(appMsgId, `微信公众号发布完成。${JSON.stringify(massData.proxyInfo)}`);
6333
+ return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(appMsgId, `微信公众号发布完成!`);
6344
6334
  };
6345
6335
  const waitQrcodeResultMaxTime = 2000 * scanRetryMaxCount;
6346
6336
  const weixinPublish_rpa_rpaAction = async (task, params)=>{
@@ -7243,7 +7233,7 @@ const xiaohongshuPublish_mock_mockAction = async (task, params)=>{
7243
7233
  },
7244
7234
  defaultErrorMsg: "文章发布异常,请稍后重试。"
7245
7235
  });
7246
- return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(publishResult.data?.id, `文章发布成功!${JSON.stringify(publishResult.proxyInfo)}`);
7236
+ return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(publishResult.data?.id, `文章发布成功!`);
7247
7237
  };
7248
7238
  const rpa_GenXSCommon = __webpack_require__("./src/utils/XhsXsCommonEnc.js");
7249
7239
  const rpa_xsEncrypt = new Xhshow();
@@ -7464,7 +7454,7 @@ const xiaohongshuPublish = async (task, params)=>{
7464
7454
  if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
7465
7455
  return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
7466
7456
  };
7467
- var package_namespaceObject = JSON.parse('{"i8":"1.2.24-beta.6"}');
7457
+ var package_namespaceObject = JSON.parse('{"i8":"1.2.24-beta.8"}');
7468
7458
  const BetaFlag = "HuiwenCanary";
7469
7459
  class Action {
7470
7460
  constructor(task){