()
| 58 | task_id: this.task_id, |
| 59 | cid: this.cid, |
| 60 | msg: this.msg, |
| 61 | interval: this.interval, |
| 62 | cron: this.cron, |
| 63 | pause: this.pause, |
| 64 | time_limit: this.time_limit, |
| 65 | hour: this.hour, |
| 66 | minute: this.minute, |
| 67 | second: this.second, |
| 68 | current_count: this.current_count |
| 69 | }; |
| 70 | } |
| 71 | |
| 72 | // 减少时间限制计数 |
| 73 | reduceTime(): boolean { |
| 74 | if (this.time_limit > 0) { |
| 75 | this.time_limit -= 1; |
| 76 | return this.time_limit === 0; |
| 77 | } |