@iflyrpa/actions 1.2.12 → 1.2.14

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
@@ -1377,7 +1377,8 @@ const errnoMap = {
1377
1377
  2004005714: "网络环境异常,请检查网络后重试发布。",
1378
1378
  401100032: "异常,请检查图片(如:格式、版权、合规性等)。",
1379
1379
  20040034: "封面图片推荐jpg、png格式,不支持gif格式。",
1380
- 20040124: "服务器异常,请稍后重试!"
1380
+ 20040124: "服务器异常,请稍后重试!",
1381
+ 20040001: "当前用户未登录,请登陆后重试!"
1381
1382
  };
1382
1383
  const mockAction = async (task, params)=>{
1383
1384
  const { baijiahaoSingleCover, baijiahaoMultCover, baijiahaoCoverType } = params.settingInfo;
@@ -1976,6 +1977,7 @@ const mock_errnoMap = {
1976
1977
  2010: "无头条广告权限,请修改后重试。",
1977
1978
  3103: "今日头条号发布次数已达上限,请明天再试。",
1978
1979
  1053: "正文图片和封面图片推荐jpg、png格式。",
1980
+ 1050: "图片上传失败,请重试上传。",
1979
1981
  2005: "账号无【申明原创】权限,请关闭申明后重试。",
1980
1982
  100004: "用户未登录或登陆已过期,请重新登陆后重试。"
1981
1983
  };
@@ -2124,7 +2126,7 @@ const mock_mockAction = async (task, params)=>{
2124
2126
  }
2125
2127
  }))),
2126
2128
  article_ad_type: getAddTypeValue(params.settingInfo.toutiaoAd),
2127
- claim_exclusive: toutiaoExclusive ? toutiaoExclusive : toutiaoOriginal.includes("exclusive") ? 1 : 0
2129
+ claim_exclusive: toutiaoExclusive ? toutiaoExclusive : toutiaoOriginal?.includes("exclusive") ? 1 : 0
2128
2130
  };
2129
2131
  const msToken = params.cookies.find((it)=>"msToken" === it.name)?.value;
2130
2132
  let publishOption = {};
@@ -2296,7 +2298,7 @@ const rpa_rpaAction = async (task, params)=>{
2296
2298
  const exclusiveContainer = page.locator(".form-container .edit-cell .edit-label").filter({
2297
2299
  hasText: "声明首发"
2298
2300
  }).locator("xpath=..");
2299
- if (params.settingInfo.toutiaoOriginal.includes("exclusive") || params.settingInfo.toutiaoExclusive) exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").check();
2301
+ if (params.settingInfo.toutiaoOriginal && params.settingInfo.toutiaoOriginal.includes("exclusive") || params.settingInfo.toutiaoExclusive) exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").check();
2300
2302
  else exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").uncheck();
2301
2303
  let claim = params.settingInfo.toutiaoClaim ? params.settingInfo.toutiaoClaim.type : 5;
2302
2304
  switch(claim){
@@ -4068,6 +4070,7 @@ class XsEncrypt {
4068
4070
  }
4069
4071
  const xiaohongshuPublish_mock_errnoMap = {
4070
4072
  915: "所属C端账号手机号被修改,请重新登录",
4073
+ 914: "所属C端账号密码被修改,请重新登录",
4071
4074
  903: "账户已登出,需重新登陆重试!",
4072
4075
  902: "登录已过期,请重新登录!"
4073
4076
  };
@@ -4476,7 +4479,7 @@ const xiaohongshuPublish = async (task, params)=>{
4476
4479
  return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
4477
4480
  };
4478
4481
  var package_namespaceObject = {
4479
- i8: "1.2.11"
4482
+ i8: "1.2.13"
4480
4483
  };
4481
4484
  class Action {
4482
4485
  constructor(task){