@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.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
  };
@@ -3374,10 +3375,11 @@ var __webpack_exports__ = {};
3374
3375
  t: "ajax-response",
3375
3376
  token: params.token,
3376
3377
  lang: "zh_CN",
3377
- ...params.settingInfo.timer ? {
3378
- action: "time_send"
3379
- } : {},
3380
- ...params.masssend ? {} : {
3378
+ ...params.masssend ? {
3379
+ ...params.settingInfo.timer ? {
3380
+ action: "time_send"
3381
+ } : {}
3382
+ } : {
3381
3383
  is_release_publish_page: 1
3382
3384
  }
3383
3385
  },
@@ -4529,7 +4531,7 @@ var __webpack_exports__ = {};
4529
4531
  if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
4530
4532
  return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
4531
4533
  };
4532
- var package_namespaceObject = JSON.parse('{"i8":"1.2.11-beta.2"}');
4534
+ var package_namespaceObject = JSON.parse('{"i8":"1.2.11-beta.4"}');
4533
4535
  class Action {
4534
4536
  constructor(task){
4535
4537
  this.task = task;