* 变量检查与处理 * @returns
()
| 199 | * @returns |
| 200 | */ |
| 201 | async function checkEnv() { |
| 202 | let qxCookies = cookies.join("") |
| 203 | let userCookie = ($.isNode() ? process.env[ckName] : qxCookies) || ""; |
| 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 UserInfo(n)); |
| 212 | } else { |
| 213 | console.log(`未找到变量[${ckName}]`); |
| 214 | return; |
| 215 | } |
| 216 | return console.log(`共找到${userList.length}个账号`), true; //true == !0 |
| 217 | } |
| 218 | |
| 219 | ///////////////////////////////////////////////////////////////////////////////////// |
| 220 | // prettier-ignore |