@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/actions/toutiaoPublish/index.d.ts +1 -1
- package/dist/bundle.js +7 -4
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1425,7 +1425,8 @@ var __webpack_exports__ = {};
|
|
|
1425
1425
|
2004005714: "网络环境异常,请检查网络后重试发布。",
|
|
1426
1426
|
401100032: "异常,请检查图片(如:格式、版权、合规性等)。",
|
|
1427
1427
|
20040034: "封面图片推荐jpg、png格式,不支持gif格式。",
|
|
1428
|
-
20040124: "服务器异常,请稍后重试!"
|
|
1428
|
+
20040124: "服务器异常,请稍后重试!",
|
|
1429
|
+
20040001: "当前用户未登录,请登陆后重试!"
|
|
1429
1430
|
};
|
|
1430
1431
|
const mockAction = async (task, params)=>{
|
|
1431
1432
|
const { baijiahaoSingleCover, baijiahaoMultCover, baijiahaoCoverType } = params.settingInfo;
|
|
@@ -2024,6 +2025,7 @@ var __webpack_exports__ = {};
|
|
|
2024
2025
|
2010: "无头条广告权限,请修改后重试。",
|
|
2025
2026
|
3103: "今日头条号发布次数已达上限,请明天再试。",
|
|
2026
2027
|
1053: "正文图片和封面图片推荐jpg、png格式。",
|
|
2028
|
+
1050: "图片上传失败,请重试上传。",
|
|
2027
2029
|
2005: "账号无【申明原创】权限,请关闭申明后重试。",
|
|
2028
2030
|
100004: "用户未登录或登陆已过期,请重新登陆后重试。"
|
|
2029
2031
|
};
|
|
@@ -2172,7 +2174,7 @@ var __webpack_exports__ = {};
|
|
|
2172
2174
|
}
|
|
2173
2175
|
}))),
|
|
2174
2176
|
article_ad_type: getAddTypeValue(params.settingInfo.toutiaoAd),
|
|
2175
|
-
claim_exclusive: toutiaoExclusive ? toutiaoExclusive : toutiaoOriginal
|
|
2177
|
+
claim_exclusive: toutiaoExclusive ? toutiaoExclusive : toutiaoOriginal?.includes("exclusive") ? 1 : 0
|
|
2176
2178
|
};
|
|
2177
2179
|
const msToken = params.cookies.find((it)=>"msToken" === it.name)?.value;
|
|
2178
2180
|
let publishOption = {};
|
|
@@ -2344,7 +2346,7 @@ var __webpack_exports__ = {};
|
|
|
2344
2346
|
const exclusiveContainer = page.locator(".form-container .edit-cell .edit-label").filter({
|
|
2345
2347
|
hasText: "声明首发"
|
|
2346
2348
|
}).locator("xpath=..");
|
|
2347
|
-
if (params.settingInfo.toutiaoOriginal.includes("exclusive") || params.settingInfo.toutiaoExclusive) exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").check();
|
|
2349
|
+
if (params.settingInfo.toutiaoOriginal && params.settingInfo.toutiaoOriginal.includes("exclusive") || params.settingInfo.toutiaoExclusive) exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").check();
|
|
2348
2350
|
else exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").uncheck();
|
|
2349
2351
|
let claim = params.settingInfo.toutiaoClaim ? params.settingInfo.toutiaoClaim.type : 5;
|
|
2350
2352
|
switch(claim){
|
|
@@ -4119,6 +4121,7 @@ var __webpack_exports__ = {};
|
|
|
4119
4121
|
}
|
|
4120
4122
|
const xiaohongshuPublish_mock_errnoMap = {
|
|
4121
4123
|
915: "所属C端账号手机号被修改,请重新登录",
|
|
4124
|
+
914: "所属C端账号密码被修改,请重新登录",
|
|
4122
4125
|
903: "账户已登出,需重新登陆重试!",
|
|
4123
4126
|
902: "登录已过期,请重新登录!"
|
|
4124
4127
|
};
|
|
@@ -4527,7 +4530,7 @@ var __webpack_exports__ = {};
|
|
|
4527
4530
|
return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
|
|
4528
4531
|
};
|
|
4529
4532
|
var package_namespaceObject = {
|
|
4530
|
-
i8: "1.2.
|
|
4533
|
+
i8: "1.2.13"
|
|
4531
4534
|
};
|
|
4532
4535
|
class Action {
|
|
4533
4536
|
constructor(task){
|