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

Function checkEnv

fenxiang.js:202–217  ·  view source on GitHub ↗

* 变量检查与处理 * @returns

()

Source from the content-addressed store, hash-verified

200 * @returns
201 */
202async function checkEnv() {
203 let userCookie = ($.isNode() ? process.env[ckName] : $.getdata(ckName)) || "";
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 Task(n));
212 } else {
213 console.log(`未找到CK【${ckName}】`);
214 return;
215 }
216 return console.log(`共找到${userList.length}个账号`), true; //true == !0
217}
218//Env Api =============================
219/*
220 * @modifyAuthor @smallfawn

Callers 1

fenxiang.jsFile · 0.70

Calls 3

isNodeMethod · 0.45
getdataMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected