| 641 | //******************************************************** |
| 642 | // 变量检查与处理 |
| 643 | async function checkEnv() { |
| 644 | let arr = await readFile() |
| 645 | //console.log(arr) |
| 646 | |
| 647 | if (arr && arr.length <= 0) return console.log("未找到CK") |
| 648 | let tmp = [] |
| 649 | |
| 650 | for (let i of arr) { |
| 651 | |
| 652 | tmp.push(`${i.enData}#${i.enKey}`) |
| 653 | } |
| 654 | let userCookie = tmp.join("&"); |
| 655 | if (userCookie) { |
| 656 | //console.log(userCookie); |
| 657 | let e = envSplitor[0]; |
| 658 | for (let o of envSplitor) |
| 659 | if (userCookie.indexOf(o) > -1) { |
| 660 | e = o; |
| 661 | break; |
| 662 | } |
| 663 | for (let n of userCookie.split(e)) n && userList.push(new UserInfo(n)); |
| 664 | userCount = userList.length; |
| 665 | } else { |
| 666 | console.log("未找到CK"); |
| 667 | return; |
| 668 | } |
| 669 | return console.log(`共找到${userCount}个账号`), true; //true == !0 |
| 670 | } |
| 671 | ///////////////////////////////////////////////////////////////////////////////////// |
| 672 | function httpRequest(options, method) { |
| 673 | method = options.method |