@iflyrpa/actions 1.2.11-beta.5 → 1.2.12-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/actions/baijiahaoPublish/index.d.ts +1 -1
- package/dist/actions/toutiaoPublish/index.d.ts +1 -1
- package/dist/bundle.js +5 -8
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +5 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1448,10 +1448,6 @@ const mockAction = async (task, params)=>{
|
|
|
1448
1448
|
}
|
|
1449
1449
|
return dom;
|
|
1450
1450
|
});
|
|
1451
|
-
let vertical_cover = params.settingInfo.baijiahaoVerticalCover;
|
|
1452
|
-
if (vertical_cover) vertical_cover = (await uploadImages([
|
|
1453
|
-
vertical_cover
|
|
1454
|
-
]))[0].bos_url;
|
|
1455
1451
|
const horizontalCoverUrl = "single" === baijiahaoCoverType ? [
|
|
1456
1452
|
baijiahaoSingleCover
|
|
1457
1453
|
] : baijiahaoMultCover;
|
|
@@ -1487,7 +1483,6 @@ const mockAction = async (task, params)=>{
|
|
|
1487
1483
|
const publishData = {
|
|
1488
1484
|
title: params.settingInfo.baijiahaoTitle,
|
|
1489
1485
|
content,
|
|
1490
|
-
vertical_cover,
|
|
1491
1486
|
abstract: params.settingInfo.baijiahaoAbstract,
|
|
1492
1487
|
cover_layout,
|
|
1493
1488
|
cover_images: JSON.stringify(cover_images),
|
|
@@ -2129,7 +2124,7 @@ const mock_mockAction = async (task, params)=>{
|
|
|
2129
2124
|
}
|
|
2130
2125
|
}))),
|
|
2131
2126
|
article_ad_type: getAddTypeValue(params.settingInfo.toutiaoAd),
|
|
2132
|
-
claim_exclusive: toutiaoExclusive ? toutiaoExclusive : toutiaoOriginal
|
|
2127
|
+
claim_exclusive: toutiaoExclusive ? toutiaoExclusive : toutiaoOriginal?.includes("exclusive") ? 1 : 0
|
|
2133
2128
|
};
|
|
2134
2129
|
const msToken = params.cookies.find((it)=>"msToken" === it.name)?.value;
|
|
2135
2130
|
let publishOption = {};
|
|
@@ -2301,7 +2296,7 @@ const rpa_rpaAction = async (task, params)=>{
|
|
|
2301
2296
|
const exclusiveContainer = page.locator(".form-container .edit-cell .edit-label").filter({
|
|
2302
2297
|
hasText: "声明首发"
|
|
2303
2298
|
}).locator("xpath=..");
|
|
2304
|
-
if (params.settingInfo.toutiaoOriginal.includes("exclusive") || params.settingInfo.toutiaoExclusive) exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").check();
|
|
2299
|
+
if (params.settingInfo.toutiaoOriginal && params.settingInfo.toutiaoOriginal.includes("exclusive") || params.settingInfo.toutiaoExclusive) exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").check();
|
|
2305
2300
|
else exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").uncheck();
|
|
2306
2301
|
let claim = params.settingInfo.toutiaoClaim ? params.settingInfo.toutiaoClaim.type : 5;
|
|
2307
2302
|
switch(claim){
|
|
@@ -4480,7 +4475,9 @@ const xiaohongshuPublish = async (task, params)=>{
|
|
|
4480
4475
|
if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
|
|
4481
4476
|
return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
|
|
4482
4477
|
};
|
|
4483
|
-
var package_namespaceObject =
|
|
4478
|
+
var package_namespaceObject = {
|
|
4479
|
+
i8: "1.2.11"
|
|
4480
|
+
};
|
|
4484
4481
|
class Action {
|
|
4485
4482
|
constructor(task){
|
|
4486
4483
|
this.task = task;
|