@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.js
CHANGED
|
@@ -1548,9 +1548,11 @@ var __webpack_exports__ = {};
|
|
|
1548
1548
|
source: "upload",
|
|
1549
1549
|
cover_source: "upload",
|
|
1550
1550
|
event2news: params.settingInfo?.baijiahaoEvent2News ? 2 : 0,
|
|
1551
|
-
activity_list
|
|
1551
|
+
activity_list,
|
|
1552
|
+
...params.settingInfo.timer ? {
|
|
1553
|
+
timer_time: params.settingInfo.timer
|
|
1554
|
+
} : {}
|
|
1552
1555
|
};
|
|
1553
|
-
params.settingInfo.timer && (publishData['timer_time'] = params.settingInfo.timer);
|
|
1554
1556
|
const isDraft = "draft" === params.saveType;
|
|
1555
1557
|
const saveUrl = isDraft ? "https://baijiahao.baidu.com/pcui/article/save?callback=bjhdraft" : "https://baijiahao.baidu.com/pcui/article/publish?callback=bjhpublish";
|
|
1556
1558
|
const res = await http.api({
|
|
@@ -1760,7 +1762,6 @@ var __webpack_exports__ = {};
|
|
|
1760
1762
|
hasText: /^发布/
|
|
1761
1763
|
}).locator("button").click();
|
|
1762
1764
|
});
|
|
1763
|
-
await page.waitForTimeout(200000);
|
|
1764
1765
|
await page.close();
|
|
1765
1766
|
return (0, share_namespaceObject.success)(articleId, articleId ? "发布成功" : message);
|
|
1766
1767
|
};
|
|
@@ -4530,7 +4531,7 @@ var __webpack_exports__ = {};
|
|
|
4530
4531
|
if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
|
|
4531
4532
|
return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
|
|
4532
4533
|
};
|
|
4533
|
-
var package_namespaceObject = JSON.parse('{"i8":"1.2.11-beta.
|
|
4534
|
+
var package_namespaceObject = JSON.parse('{"i8":"1.2.11-beta.4"}');
|
|
4534
4535
|
class Action {
|
|
4535
4536
|
constructor(task){
|
|
4536
4537
|
this.task = task;
|