()
| 305 | } |
| 306 | |
| 307 | async ensureLogin() { |
| 308 | const cached = this.getCached(); |
| 309 | this.ticket = this.ticket || cached.ticket || ""; |
| 310 | this.duid = this.duid || cached.duid || ""; |
| 311 | this.udl = this.udl || cached.udl || ""; |
| 312 | this.uid = this.uid || cached.uid || ""; |
| 313 | if (this.ticket) return; |
| 314 | await this.login(); |
| 315 | } |
| 316 | |
| 317 | headers(raw) { |
| 318 | const headers = { |