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

Function main

wxapp/vipshop.js:409–420  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

407}
408
409async function main() {
410 $.checkEnv(ckName);
411 const accounts = $.userList && $.userList.length ? $.userList : splitAccounts(process.env[ckName]);
412 if (!accounts.length) {
413 $.log(`未找到变量 ${ckName}`);
414 return;
415 }
416 for (let i = 0; i < accounts.length; i++) {
417 await new Vipshop(accounts[i], i + 1).run();
418 if (i < accounts.length - 1) await $.wait(1500, 3000);
419 }
420}
421
422main()
423 .catch((e) => $.log(`脚本异常: ${e.message || e}`))

Callers 1

vipshop.jsFile · 0.70

Calls 5

checkEnvMethod · 0.80
splitAccountsFunction · 0.70
logMethod · 0.45
runMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected