()
| 93 | } |
| 94 | |
| 95 | async getToken(): Promise<string> { |
| 96 | if (!this.token || Date.now() > this.expireTime) { |
| 97 | // 如果token不存在或者token过期 |
| 98 | await this.fetchToken(); |
| 99 | } |
| 100 | |
| 101 | return this.token; |
| 102 | } |
| 103 | |
| 104 | async singlePush( |
| 105 | userId: string, |
no test coverage detected