(reason: string)
| 1134 | } |
| 1135 | |
| 1136 | intercepted(reason: string): void { |
| 1137 | this.summary.status = 'intercepted'; |
| 1138 | this.summary.endTime = Date.now(); |
| 1139 | this.log('info', 'System', 'intercept', reason); |
| 1140 | logEmitter.emit('summary', this.summary); |
| 1141 | persistRequest(this.summary, this.payload); |
| 1142 | console.log(`\x1b[35m⊘\x1b[0m [${this.requestId}] 拦截: ${reason}`); |
| 1143 | } |
| 1144 | |
| 1145 | fail(error: string): void { |
| 1146 | this.endPhase(); |
no test coverage detected