* 变量检查与处理 * @returns
()
| 116 | * @returns |
| 117 | */ |
| 118 | async function checkEnv() { |
| 119 | let userCookie = ($.isNode() ? process.env[ckName] : $.getdata(ckName)) || ""; |
| 120 | if (userCookie) { |
| 121 | let e = envSplitor[0]; |
| 122 | for (let o of envSplitor) |
| 123 | if (userCookie.indexOf(o) > -1) { |
| 124 | e = o; |
| 125 | break; |
| 126 | } |
| 127 | for (let n of userCookie.split(e)) n && userList.push(new UserInfo(n)); |
| 128 | } else { |
| 129 | console.log("未找到CK"); |
| 130 | return; |
| 131 | } |
| 132 | return console.log(`共找到${userList.length}个账号`), true; //true == !0 |
| 133 | } |
| 134 | |
| 135 | ///////////////////////////////////////////////////////////////////////////////////// |
| 136 | function Env(t, s) { |
no test coverage detected