(raw)
| 124 | |
| 125 | class Task { |
| 126 | constructor(raw) { |
| 127 | this.index = $.userIdx++; |
| 128 | const account = parseAccount(raw); |
| 129 | this.openid = account.openid; |
| 130 | this.token = account.token || ""; |
| 131 | this.userId = ""; |
| 132 | this.cacheKey = this.openid || (this.token ? md5(this.token).slice(0, 16) : `account_${this.index}`); |
| 133 | } |
| 134 | |
| 135 | getCached() { |
| 136 | return readCache()[this.cacheKey] || {}; |
nothing calls this directly
no test coverage detected