component-shipinlv 2.2.26 → 2.2.27

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.
@@ -4,6 +4,7 @@ declare class PublishTaskPlanClass {
4
4
  env: Global.Env | '';
5
5
  clientIdentity: string;
6
6
  lastPublishHeart: number;
7
+ MaxNotHeartSecond: number;
7
8
  taskDetail: PublishTaskPlan.TaskDetail;
8
9
  options: PublishTaskPlan.Options;
9
10
  constructor(env: Global.Env | '', clientIdentity: string | undefined, options: PublishTaskPlan.Options);
@@ -27,6 +27,7 @@ var PublishTaskPlanClass = /*#__PURE__*/function () {
27
27
  _defineProperty(this, "env", '');
28
28
  _defineProperty(this, "clientIdentity", '');
29
29
  _defineProperty(this, "lastPublishHeart", 0);
30
+ _defineProperty(this, "MaxNotHeartSecond", 2 * 60);
30
31
  _defineProperty(this, "taskDetail", {
31
32
  emptyLoopTimeSecond: 10,
32
33
  platformVideoAccountId: '',
@@ -78,12 +79,11 @@ var PublishTaskPlanClass = /*#__PURE__*/function () {
78
79
  _context.next = 12;
79
80
  break;
80
81
  }
81
- if (!(_this.lastPublishHeart + 60e3 < Date.now())) {
82
+ if (!(_this.lastPublishHeart + _this.MaxNotHeartSecond * 1e3 < Date.now())) {
82
83
  _context.next = 12;
83
84
  break;
84
85
  }
85
86
  _this.lastPublishHeart = 0;
86
-
87
87
  // 浏览器卡住了
88
88
  errLog = {
89
89
  platform: _this.taskDetail.platform,
@@ -448,7 +448,7 @@ var PublishTaskPlanClass = /*#__PURE__*/function () {
448
448
  case 0:
449
449
  settingConfig = AccountManageSettingConfig();
450
450
  console.log('settingConfig 1:', settingConfig);
451
- _this3.lastPublishHeart = Date.now();
451
+ _this.lastPublishHeart = Date.now();
452
452
  _context8.next = 5;
453
453
  return _this.onPublishVideoDo(proxyInfo, {
454
454
  platformVideoAccountId: platformVideoAccountId,
@@ -528,7 +528,7 @@ var PublishTaskPlanClass = /*#__PURE__*/function () {
528
528
  }());
529
529
  case 5:
530
530
  publishResult = _context8.sent;
531
- _this3.lastPublishHeart = 0;
531
+ _this.lastPublishHeart = 0;
532
532
  if (publishResult) {
533
533
  _context8.next = 10;
534
534
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "2.2.26",
3
+ "version": "2.2.27",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",