(raw)
| 187 | |
| 188 | class Task { |
| 189 | constructor(raw) { |
| 190 | this.index = $.userIdx++; |
| 191 | const account = parseAccount(raw); |
| 192 | this.openid = account.openid || ""; |
| 193 | this.ticket = account.ticket || ""; |
| 194 | this.duid = account.duid || ""; |
| 195 | this.udl = account.udl || ""; |
| 196 | this.uid = ""; |
| 197 | this.cacheKey = this.openid || (this.ticket ? md5(this.ticket).slice(0, 16) : `account_${this.index}`); |
| 198 | } |
| 199 | |
| 200 | getCached() { |
| 201 | return readCache()[this.cacheKey] || {}; |
nothing calls this directly
no test coverage detected