@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.js
CHANGED
|
@@ -1496,10 +1496,6 @@ var __webpack_exports__ = {};
|
|
|
1496
1496
|
}
|
|
1497
1497
|
return dom;
|
|
1498
1498
|
});
|
|
1499
|
-
let vertical_cover = params.settingInfo.baijiahaoVerticalCover;
|
|
1500
|
-
if (vertical_cover) vertical_cover = (await uploadImages([
|
|
1501
|
-
vertical_cover
|
|
1502
|
-
]))[0].bos_url;
|
|
1503
1499
|
const horizontalCoverUrl = "single" === baijiahaoCoverType ? [
|
|
1504
1500
|
baijiahaoSingleCover
|
|
1505
1501
|
] : baijiahaoMultCover;
|
|
@@ -1535,7 +1531,6 @@ var __webpack_exports__ = {};
|
|
|
1535
1531
|
const publishData = {
|
|
1536
1532
|
title: params.settingInfo.baijiahaoTitle,
|
|
1537
1533
|
content,
|
|
1538
|
-
vertical_cover,
|
|
1539
1534
|
abstract: params.settingInfo.baijiahaoAbstract,
|
|
1540
1535
|
cover_layout,
|
|
1541
1536
|
cover_images: JSON.stringify(cover_images),
|
|
@@ -2177,7 +2172,7 @@ var __webpack_exports__ = {};
|
|
|
2177
2172
|
}
|
|
2178
2173
|
}))),
|
|
2179
2174
|
article_ad_type: getAddTypeValue(params.settingInfo.toutiaoAd),
|
|
2180
|
-
claim_exclusive: toutiaoExclusive ? toutiaoExclusive : toutiaoOriginal
|
|
2175
|
+
claim_exclusive: toutiaoExclusive ? toutiaoExclusive : toutiaoOriginal?.includes("exclusive") ? 1 : 0
|
|
2181
2176
|
};
|
|
2182
2177
|
const msToken = params.cookies.find((it)=>"msToken" === it.name)?.value;
|
|
2183
2178
|
let publishOption = {};
|
|
@@ -2349,7 +2344,7 @@ var __webpack_exports__ = {};
|
|
|
2349
2344
|
const exclusiveContainer = page.locator(".form-container .edit-cell .edit-label").filter({
|
|
2350
2345
|
hasText: "声明首发"
|
|
2351
2346
|
}).locator("xpath=..");
|
|
2352
|
-
if (params.settingInfo.toutiaoOriginal.includes("exclusive") || params.settingInfo.toutiaoExclusive) exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").check();
|
|
2347
|
+
if (params.settingInfo.toutiaoOriginal && params.settingInfo.toutiaoOriginal.includes("exclusive") || params.settingInfo.toutiaoExclusive) exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").check();
|
|
2353
2348
|
else exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").uncheck();
|
|
2354
2349
|
let claim = params.settingInfo.toutiaoClaim ? params.settingInfo.toutiaoClaim.type : 5;
|
|
2355
2350
|
switch(claim){
|
|
@@ -4531,7 +4526,9 @@ var __webpack_exports__ = {};
|
|
|
4531
4526
|
if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
|
|
4532
4527
|
return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
|
|
4533
4528
|
};
|
|
4534
|
-
var package_namespaceObject =
|
|
4529
|
+
var package_namespaceObject = {
|
|
4530
|
+
i8: "1.2.11"
|
|
4531
|
+
};
|
|
4535
4532
|
class Action {
|
|
4536
4533
|
constructor(task){
|
|
4537
4534
|
this.task = task;
|