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

Function main

wxapp/skyworth.js:250–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

248}
249
250async function main() {
251 const accounts = splitAccounts(process.env.skyworth || process.env.chuangwei || "");
252 if (!accounts.length) {
253 $.log("未找到变量 skyworth 或 chuangwei");
254 return;
255 }
256 for (let i = 0; i < accounts.length; i++) {
257 await new Skyworth(accounts[i], i + 1).run();
258 if (i < accounts.length - 1) await $.wait(1500, 3000);
259 }
260}
261
262main()
263 .catch((e) => $.log(`脚本异常: ${e.message || e}`))

Callers 1

skyworth.jsFile · 0.70

Calls 4

splitAccountsFunction · 0.70
logMethod · 0.45
runMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected