* 变量检查与处理 * @returns
()
| 141 | * @returns |
| 142 | */ |
| 143 | async function checkEnv() { |
| 144 | let userCookie = ($.isNode() ? process.env[ckName] : $.getdata(ckName)) || ""; |
| 145 | if (userCookie) { |
| 146 | let e = envSplitor[0]; |
| 147 | for (let o of envSplitor) |
| 148 | if (userCookie.indexOf(o) > -1) { |
| 149 | e = o; |
| 150 | break; |
| 151 | } |
| 152 | for (let n of userCookie.split(e)) n && userList.push(new Task(n)); |
| 153 | } else { |
| 154 | console.log("未找到CK"); |
| 155 | return; |
| 156 | } |
| 157 | return console.log(`共找到${userList.length}个账号`), true; //true == !0 |
| 158 | } |
| 159 | function Env(t, s) { |
| 160 | return new (class { |
| 161 | constructor(t, s) { |
no test coverage detected