@iflyrpa/actions 1.2.11-beta.4 → 1.2.11-beta.5
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/bundle.js +5 -4
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1500,9 +1500,11 @@ const mockAction = async (task, params)=>{
|
|
|
1500
1500
|
source: "upload",
|
|
1501
1501
|
cover_source: "upload",
|
|
1502
1502
|
event2news: params.settingInfo?.baijiahaoEvent2News ? 2 : 0,
|
|
1503
|
-
activity_list
|
|
1503
|
+
activity_list,
|
|
1504
|
+
...params.settingInfo.timer ? {
|
|
1505
|
+
timer_time: params.settingInfo.timer
|
|
1506
|
+
} : {}
|
|
1504
1507
|
};
|
|
1505
|
-
params.settingInfo.timer && (publishData['timer_time'] = params.settingInfo.timer);
|
|
1506
1508
|
const isDraft = "draft" === params.saveType;
|
|
1507
1509
|
const saveUrl = isDraft ? "https://baijiahao.baidu.com/pcui/article/save?callback=bjhdraft" : "https://baijiahao.baidu.com/pcui/article/publish?callback=bjhpublish";
|
|
1508
1510
|
const res = await http.api({
|
|
@@ -1712,7 +1714,6 @@ const rpaAction = async (task, params)=>{
|
|
|
1712
1714
|
hasText: /^发布/
|
|
1713
1715
|
}).locator("button").click();
|
|
1714
1716
|
});
|
|
1715
|
-
await page.waitForTimeout(200000);
|
|
1716
1717
|
await page.close();
|
|
1717
1718
|
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(articleId, articleId ? "发布成功" : message);
|
|
1718
1719
|
};
|
|
@@ -4479,7 +4480,7 @@ const xiaohongshuPublish = async (task, params)=>{
|
|
|
4479
4480
|
if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
|
|
4480
4481
|
return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
|
|
4481
4482
|
};
|
|
4482
|
-
var package_namespaceObject = JSON.parse('{"i8":"1.2.11-beta.
|
|
4483
|
+
var package_namespaceObject = JSON.parse('{"i8":"1.2.11-beta.4"}');
|
|
4483
4484
|
class Action {
|
|
4484
4485
|
constructor(task){
|
|
4485
4486
|
this.task = task;
|