()
| 407 | } |
| 408 | |
| 409 | async 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 | |
| 422 | main() |
| 423 | .catch((e) => $.log(`脚本异常: ${e.message || e}`)) |
no test coverage detected