()
| 75 | this.time_limit -= 1; |
| 76 | return this.time_limit === 0; |
| 77 | } |
| 78 | return false; |
| 79 | } |
| 80 | |
| 81 | // 检查时间值有效性 |
| 82 | static checkTime(time: string, minValue?: number, maxValue?: number): string { |
| 83 | const timeNum = parseInt(time); |
| 84 | if (isNaN(timeNum)) { |
| 85 | throw new Error(`时间值 ${time} 不是有效数字`); |
| 86 | } |