Update kfh.js

This commit is contained in:
smallfawn
2024-03-26 12:00:19 +08:00
committed by GitHub
parent 07666fc8b3
commit 6be54c3100

View File

@@ -127,7 +127,7 @@ class Task {
let taskall = []; let taskall = [];
for (let user of userList) { for (let user of userList) {
if (user.ckStatus) { if (user.ckStatus) {
taskall.push(user.main()); taskall.push(await user.main());
} }
} }
await Promise.all(taskall); await Promise.all(taskall);
@@ -136,10 +136,10 @@ class Task {
if (userList[i].ckStatus) { if (userList[i].ckStatus) {
let sharCode = shareList[Number(i) + 1] let sharCode = shareList[Number(i) + 1]
if (sharCode !== undefined) { if (sharCode !== undefined) {
taskall.push(userList[i].help(sharCode)); taskall.push(await userList[i].help(sharCode));
} else { } else {
if (userList.length > 1) { if (userList.length > 1) {
userList[i].help(shareList[0]) userList[i].help(await shareList[0])
} else { } else {
$.log(`账号数目为1 不执行内部助力`) $.log(`账号数目为1 不执行内部助力`)