fix automatic login

This commit is contained in:
被遗忘的记忆
2024-09-18 20:01:16 +08:00
committed by GitHub
parent df5559a7d3
commit cdcb3868c0
+1 -3
View File
@@ -114,7 +114,6 @@ class YouProvider {
createDirectoryIfNotExists(path.join(__dirname, "browser_profiles", currentUsername));
try {
await sleep(1000);
const response = await connect({
headless: "auto",
turnstile: true,
@@ -158,9 +157,8 @@ class YouProvider {
session.dsr
));
await page.goto("https://you.com", {timeout: timeout});
}
await sleep(5000); // 等待加载完毕
}
// 如果遇到盾了就多等一段时间
const pageContent = await page.content();