MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / checkEnv

Function checkEnv

gqftbz.js:643–670  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

641//********************************************************
642// 变量检查与处理
643async 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/////////////////////////////////////////////////////////////////////////////////////
672function httpRequest(options, method) {
673 method = options.method

Callers 1

gqftbz.jsFile · 0.70

Calls 2

readFileFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected