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

Function checkEnv

ruilanCar.js:143–158  ·  view source on GitHub ↗

* 变量检查与处理 * @returns

()

Source from the content-addressed store, hash-verified

141 * @returns
142 */
143async function checkEnv() {
144 let userCookie = ($.isNode() ? process.env[ckName] : $.getdata(ckName)) || "";
145 if (userCookie) {
146 let e = envSplitor[0];
147 for (let o of envSplitor)
148 if (userCookie.indexOf(o) > -1) {
149 e = o;
150 break;
151 }
152 for (let n of userCookie.split(e)) n && userList.push(new Task(n));
153 } else {
154 console.log("未找到CK");
155 return;
156 }
157 return console.log(`共找到${userList.length}个账号`), true; //true == !0
158}
159function Env(t, s) {
160 return new (class {
161 constructor(t, s) {

Callers 1

ruilanCar.jsFile · 0.70

Calls 3

isNodeMethod · 0.45
getdataMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected