MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / checkEnv

Function checkEnv

wxapp/miaoyouHome.js:118–133  ·  view source on GitHub ↗

* 变量检查与处理 * @returns

()

Source from the content-addressed store, hash-verified

116 * @returns
117 */
118async 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/////////////////////////////////////////////////////////////////////////////////////
136function Env(t, s) {

Callers 1

miaoyouHome.jsFile · 0.70

Calls 3

isNodeMethod · 0.45
getdataMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected