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

Function checkEnv

jlld.js:201–217  ·  view source on GitHub ↗

* 变量检查与处理 * @returns

()

Source from the content-addressed store, hash-verified

199 * @returns
200 */
201async function checkEnv() {
202 let qxCookies = cookies.join("")
203 let userCookie = ($.isNode() ? process.env[ckName] : qxCookies) || "";
204 if (userCookie) {
205 let e = envSplitor[0];
206 for (let o of envSplitor)
207 if (userCookie.indexOf(o) > -1) {
208 e = o;
209 break;
210 }
211 for (let n of userCookie.split(e)) n && userList.push(new UserInfo(n));
212 } else {
213 console.log(`未找到变量[${ckName}]`);
214 return;
215 }
216 return console.log(`共找到${userList.length}个账号`), true; //true == !0
217}
218
219/////////////////////////////////////////////////////////////////////////////////////
220// prettier-ignore

Callers 1

jlld.jsFile · 0.70

Calls 2

isNodeMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected