Skip to content

Commit

Permalink
fix: 增加点赞间隔,避免频繁429
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Aug 6, 2024
1 parent 151f91d commit 706198d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions bypasscf.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ if (fs.existsSync(".env.local")) {
for (const k in envConfig) {
process.env[k] = envConfig[k];
}
} else {
console.log(
"Using .env file to supply config environment variables, you can create a .env.local file to overwrite defaults, it doesn't upload to git"
);
}
// 从环境变量解析用户名和密码
const usernames = process.env.USERNAMES.split(",");
Expand Down
2 changes: 1 addition & 1 deletion external.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
} else {
console.log("clickCounter:", clickCounter);
}
}, index * 1000); // 这里的1000毫秒是两次点击之间的间隔,可以根据需要调整
}, index * 2000); // 这里的2000毫秒是两次点击之间的间隔,可以根据需要调整
});
}
const button = document.createElement("button");
Expand Down
2 changes: 1 addition & 1 deletion index_passage_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
} else {
console.log("clickCounter:", clickCounter);
}
}, index * 1000); // 这里的1000毫秒是两次点击之间的间隔,可以根据需要调整
}, index * 2000); // 这里的2000毫秒是两次点击之间的间隔,可以根据需要调整
});
}
const button = document.createElement("button");
Expand Down

0 comments on commit 706198d

Please sign in to comment.