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

Method checkEnv

tools/env.js:49–55  ·  view source on GitHub ↗
(ckName)

Source from the content-addressed store, hash-verified

47 }
48 }
49 checkEnv(ckName) {
50 const envSplitor = ["&", "\n"];
51 let userCookie = (this.isNode() ? process.env[ckName] : "") || "";
52 this.userList = userCookie.split(envSplitor.find((o) => userCookie.includes(o)) || "&").filter((n) => n);
53 this.userCount = this.userList.length;
54 this.log(`共找到${this.userCount}个账号`);
55 }
56 toStr(v) {
57 if (v instanceof Error) return v.stack || v.message;
58 if (v && typeof v == "object") try { return JSON.stringify(v) } catch { return "[Complex Object]" }

Callers 15

haitian.jsFile · 0.80
iqoo.jsFile · 0.80
bluedash.jsFile · 0.80
mainFunction · 0.80
junpinhui.jsFile · 0.80
fyzq.jsFile · 0.80
dasenlin.jsFile · 0.80
fafa.jsFile · 0.80
jyxe.jsFile · 0.80
yichengtong.jsFile · 0.80
gyjj.jsFile · 0.80
mainFunction · 0.80

Calls 2

isNodeMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected