(account)
| 72 | |
| 73 | class Task { |
| 74 | constructor(account) { |
| 75 | this.index = $.userIdx++; |
| 76 | this.account = String(account || "").trim(); |
| 77 | this.accessToken = ""; |
| 78 | this.authorization = ""; |
| 79 | this.userInfo = {}; |
| 80 | this.todayDate = formatDate(); |
| 81 | this.isTodaySign = false; |
| 82 | this.isDirectToken = /^token=/i.test(this.account) || /^bearer/i.test(this.account); |
| 83 | if (this.isDirectToken) this.applyToken({ authorization: this.account.replace(/^token=/i, "") }); |
| 84 | } |
| 85 | |
| 86 | async run() { |
| 87 | if (!this.authorization) { |
nothing calls this directly
no test coverage detected