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