@iflyrpa/actions 1.2.3 → 1.2.5-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
@@ -13168,7 +13168,8 @@ var __webpack_exports__ = {};
13168
13168
  20040033: "封面图片推荐 jpg、png格式,宽高在372×284-5000×5000 范围内。",
13169
13169
  2004005714: "网络环境异常,请检查网络后重试发布。",
13170
13170
  401100032: "异常,请检查图片(如:格式、版权、合规性等)。",
13171
- 20040034: "封面图片推荐jpg、png格式,不支持gif格式。"
13171
+ 20040034: "封面图片推荐jpg、png格式,不支持gif格式。",
13172
+ 20040124: "服务器异常,请稍后重试!"
13172
13173
  };
13173
13174
  const mockAction = async (task, params)=>{
13174
13175
  const { baijiahaoSingleCover, baijiahaoMultCover, baijiahaoCoverType } = params.settingInfo;
@@ -14969,7 +14970,9 @@ var __webpack_exports__ = {};
14969
14970
  this.iv = external_node_buffer_namespaceObject.Buffer.from("4uzjr7mbsibcaldp", "utf8");
14970
14971
  }
14971
14972
  }
14972
- const xiaohongshuPublish_mock_errnoMap = {};
14973
+ const xiaohongshuPublish_mock_errnoMap = {
14974
+ 903: "账户已登出,需重新登陆重试!"
14975
+ };
14973
14976
  const xsEncrypt = new XsEncrypt();
14974
14977
  const xiaohongshuPublish_mock_mockAction = async (task, params)=>{
14975
14978
  const tmpCachePath = task.getTmpPath();
@@ -15013,6 +15016,11 @@ var __webpack_exports__ = {};
15013
15016
  });
15014
15017
  const coverIds = coverIdInfo.data.uploadTempPermits[0].fileIds;
15015
15018
  const ossToken = coverIdInfo.data.uploadTempPermits[0].token;
15019
+ if (!coverIds || !ossToken) return {
15020
+ code: 200,
15021
+ message: "图片上传失败,请稍后重试!",
15022
+ data: ""
15023
+ };
15016
15024
  const uploadFile = async (url, index)=>{
15017
15025
  const fileName = getFilenameFromUrl(url);
15018
15026
  const localUrl = await downloadImage(url, external_node_path_default().join(tmpCachePath, fileName));
@@ -15131,7 +15139,7 @@ var __webpack_exports__ = {};
15131
15139
  },
15132
15140
  defaultErrorMsg: "文章发布异常,请稍后重试。"
15133
15141
  });
15134
- return success(publishResult.data.id);
15142
+ return success(publishResult.data?.id);
15135
15143
  };
15136
15144
  const rpa_xsEncrypt = new XsEncrypt();
15137
15145
  const xiaohongshuPublish_rpa_rpaAction = async (task, params)=>{
@@ -15237,7 +15245,7 @@ var __webpack_exports__ = {};
15237
15245
  };
15238
15246
  }
15239
15247
  await page.locator("#content-area .menu-container .publish-video a").click();
15240
- await page.locator(".creator-container .header .title").filter({
15248
+ await page.locator('.creator-container .header .creator-tab:not([style*="-9999px"]) .title').filter({
15241
15249
  hasText: /^上传图文$/
15242
15250
  }).click();
15243
15251
  const images = await Promise.all(params.banners.map((url)=>{
@@ -15340,7 +15348,7 @@ var __webpack_exports__ = {};
15340
15348
  return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
15341
15349
  };
15342
15350
  var package_namespaceObject = {
15343
- i8: "1.2.2"
15351
+ i8: "1.2.4"
15344
15352
  };
15345
15353
  class Action {
15346
15354
  constructor(task){