@iflyrpa/actions 1.2.12 → 1.2.13
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 +3 -3
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2124,7 +2124,7 @@ const mock_mockAction = async (task, params)=>{
|
|
|
2124
2124
|
}
|
|
2125
2125
|
}))),
|
|
2126
2126
|
article_ad_type: getAddTypeValue(params.settingInfo.toutiaoAd),
|
|
2127
|
-
claim_exclusive: toutiaoExclusive ? toutiaoExclusive : toutiaoOriginal
|
|
2127
|
+
claim_exclusive: toutiaoExclusive ? toutiaoExclusive : toutiaoOriginal?.includes("exclusive") ? 1 : 0
|
|
2128
2128
|
};
|
|
2129
2129
|
const msToken = params.cookies.find((it)=>"msToken" === it.name)?.value;
|
|
2130
2130
|
let publishOption = {};
|
|
@@ -2296,7 +2296,7 @@ const rpa_rpaAction = async (task, params)=>{
|
|
|
2296
2296
|
const exclusiveContainer = page.locator(".form-container .edit-cell .edit-label").filter({
|
|
2297
2297
|
hasText: "声明首发"
|
|
2298
2298
|
}).locator("xpath=..");
|
|
2299
|
-
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();
|
|
2300
2300
|
else exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").uncheck();
|
|
2301
2301
|
let claim = params.settingInfo.toutiaoClaim ? params.settingInfo.toutiaoClaim.type : 5;
|
|
2302
2302
|
switch(claim){
|
|
@@ -4476,7 +4476,7 @@ const xiaohongshuPublish = async (task, params)=>{
|
|
|
4476
4476
|
return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
|
|
4477
4477
|
};
|
|
4478
4478
|
var package_namespaceObject = {
|
|
4479
|
-
i8: "1.2.
|
|
4479
|
+
i8: "1.2.12"
|
|
4480
4480
|
};
|
|
4481
4481
|
class Action {
|
|
4482
4482
|
constructor(task){
|