@iflyrpa/actions 1.2.11-beta.3 → 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/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
  };
@@ -3326,10 +3327,11 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
3326
3327
  t: "ajax-response",
3327
3328
  token: params.token,
3328
3329
  lang: "zh_CN",
3329
- ...params.settingInfo.timer ? {
3330
- action: "time_send"
3331
- } : {},
3332
- ...params.masssend ? {} : {
3330
+ ...params.masssend ? {
3331
+ ...params.settingInfo.timer ? {
3332
+ action: "time_send"
3333
+ } : {}
3334
+ } : {
3333
3335
  is_release_publish_page: 1
3334
3336
  }
3335
3337
  },
@@ -4478,7 +4480,7 @@ const xiaohongshuPublish = async (task, params)=>{
4478
4480
  if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
4479
4481
  return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
4480
4482
  };
4481
- var package_namespaceObject = JSON.parse('{"i8":"1.2.11-beta.2"}');
4483
+ var package_namespaceObject = JSON.parse('{"i8":"1.2.11-beta.4"}');
4482
4484
  class Action {
4483
4485
  constructor(task){
4484
4486
  this.task = task;