Skip to content

Commit

Permalink
chore: .
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Jul 9, 2024
1 parent b3c3d86 commit b8eaf13
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bypasscf.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ async function launchBrowserForUser(username, password) {

// 如果环境变量不是 'dev',则添加代理配置
// if (process.env.ENVIRONMENT !== "dev") {
browserOptions["proxy"] = {
host: "3.26.115.230",
port: "27754",
username: "GECPjZ1jcC",
password: "Sa39rYDhNx",
};
// browserOptions["proxy"] = {
// host: "3.26.115.230",
// port: "27754",
// username: "GECPjZ1jcC",
// password: "Sa39rYDhNx",
// };
// }

var { connect } = await import("puppeteer-real-browser");
Expand Down Expand Up @@ -237,7 +237,7 @@ async function navigatePage(url, page, browser) {
pageTitle = await page.title();

// 检查是否超过15秒
if (Date.now() - startTime > 25000) {
if (Date.now() - startTime > 35000) {
console.log("Timeout exceeded, aborting actions.");
await browser.close();
return; // 超时则退出函数
Expand Down

0 comments on commit b8eaf13

Please sign in to comment.