* 变量检查与处理 * @returns
()
| 200 | * @returns |
| 201 | */ |
| 202 | async function checkEnv() { |
| 203 | let userCookie = ($.isNode() ? process.env[ckName] : $.getdata(ckName)) || ""; |
| 204 | if (userCookie) { |
| 205 | let e = envSplitor[0]; |
| 206 | for (let o of envSplitor) |
| 207 | if (userCookie.indexOf(o) > -1) { |
| 208 | e = o; |
| 209 | break; |
| 210 | } |
| 211 | for (let n of userCookie.split(e)) n && userList.push(new Task(n)); |
| 212 | } else { |
| 213 | console.log(`未找到CK【${ckName}】`); |
| 214 | return; |
| 215 | } |
| 216 | return console.log(`共找到${userList.length}个账号`), true; //true == !0 |
| 217 | } |
| 218 | //Env Api ============================= |
| 219 | /* |
| 220 | * @modifyAuthor @smallfawn |
no test coverage detected