(ckName)
| 47 | } |
| 48 | } |
| 49 | checkEnv(ckName) { |
| 50 | const envSplitor = ["&", "\n"]; |
| 51 | let userCookie = (this.isNode() ? process.env[ckName] : "") || ""; |
| 52 | this.userList = userCookie.split(envSplitor.find((o) => userCookie.includes(o)) || "&").filter((n) => n); |
| 53 | this.userCount = this.userList.length; |
| 54 | this.log(`共找到${this.userCount}个账号`); |
| 55 | } |
| 56 | toStr(v) { |
| 57 | if (v instanceof Error) return v.stack || v.message; |
| 58 | if (v && typeof v == "object") try { return JSON.stringify(v) } catch { return "[Complex Object]" } |
no test coverage detected