(env)
| 88 | |
| 89 | class Task { |
| 90 | constructor(env) { |
| 91 | this.index = $.userIdx++; |
| 92 | this.raw = String(env || "").trim(); |
| 93 | this.user = this.raw.split(strSplitor); |
| 94 | this.accountId = this.user[0].trim(); |
| 95 | this.token = ""; |
| 96 | this.refreshToken = ""; |
| 97 | this.openId = ""; |
| 98 | this.userInfo = {}; |
| 99 | this.signStatus = false; |
| 100 | this.isLegacyToken = this.user.length >= 2; |
| 101 | if (this.isLegacyToken) { |
| 102 | this.token = this.user[0].trim(); |
| 103 | this.refreshToken = this.user[1].trim(); |
| 104 | this.accountId = `legacy:${shortToken(this.token)}`; |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | async run() { |
| 109 | if (this.isLegacyToken) { |
nothing calls this directly
no test coverage detected