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

Function start

jlqc.js:36–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34//---------------------- 自定义变量区域 -----------------------------------
35
36async function start() {
37 //await getNotice()
38 console.log('\n================== 积分查询 ==================\n');
39 taskall = [];
40 for (let user of userList) {
41 console.log(`随机延迟${user.getRandomTime()}ms`);
42 taskall.push(await user.info_point());
43 await $.wait(user.getRandomTime());
44 }
45 await Promise.all(taskall);
46 console.log('\n================== 每日签到 ==================\n');
47 taskall = [];
48 for (let user of userList) {
49 if (user.ckstatus) {
50 console.log(`随机延迟${user.getRandomTime()}ms`);
51 taskall.push(await user.task_sign());
52 await $.wait(user.getRandomTime());
53 }
54
55 }
56 await Promise.all(taskall);
57 /*console.log('\n================== 每日分享 ==================\n');
58 taskall = [];
59 for (let user of userList) {
60 if (user.ckstatus) {
61 for (let i = 0; i < 3; i++) {
62 taskall.push(await user.task_share());
63 await $.wait(5000);
64 }
65 }
66 }
67 await Promise.all(taskall);*/
68 /*console.log('\n================== 发布文章 ==================\n');
69 taskall = [];
70 for (let user of userList) {
71 if (user.ckstatus) {
72 console.log(`随机延迟${user.getRandomTime()}ms`);
73 taskall.push(await user.task_create1());
74 await $.wait(user.getRandomTime());
75 }
76 }
77 await Promise.all(taskall);*/
78 /*console.log('\n================== 发布图文 ==================\n');
79 taskall = [];
80 for (let user of userList) {
81 if (user.ckstatus) {
82 taskall.push(await user.task_create2());
83 await $.wait(10000);
84 }
85 }
86 await Promise.all(taskall);*/
87 /*console.log('\n================== 评论文章 ==================\n');
88 taskall = [];
89 for (let user of userList) {
90 if (user.ckstatus) {
91 taskall.push(await user.task_artlist());
92 }
93 }

Callers 1

jlqc.jsFile · 0.70

Calls 5

info_pointMethod · 0.80
task_signMethod · 0.80
logMethod · 0.45
getRandomTimeMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected