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

Function checkEnv

wxapp/wx_midea.js:197–212  ·  view source on GitHub ↗

* 变量检查与处理 * @returns

()

Source from the content-addressed store, hash-verified

195 * @returns
196 */
197async function checkEnv() {
198 let userCookie = ($.isNode() ? process.env[ckName] : $.getdata(ckName)) || "";
199 if (userCookie) {
200 let e = envSplitor[0];
201 for (let o of envSplitor)
202 if (userCookie.indexOf(o) > -1) {
203 e = o;
204 break;
205 }
206 for (let n of userCookie.split(e)) n && userList.push(new UserInfo(n));
207 } else {
208 console.log("未找到CK");
209 return;
210 }
211 return console.log(`共找到${userList.length}个账号`), true; //true == !0
212}
213
214/////////////////////////////////////////////////////////////////////////////////////
215function httpRequest(options) {

Callers 1

wx_midea.jsFile · 0.70

Calls 3

isNodeMethod · 0.45
getdataMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected