mirror of
https://github.com/7836246/cursor2api.git
synced 2026-09-03 07:20:02 +08:00
fix: CHALLENGE_WAIT 增加到 50s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,7 @@ const crypto = require('crypto');
|
|||||||
const PORT = parseInt(process.env.PORT || '3011');
|
const PORT = parseInt(process.env.PORT || '3011');
|
||||||
const CHALLENGE_URL = process.env.CHALLENGE_URL || 'https://cursor.com/cn/docs';
|
const CHALLENGE_URL = process.env.CHALLENGE_URL || 'https://cursor.com/cn/docs';
|
||||||
const REFRESH_INTERVAL = parseInt(process.env.REFRESH_INTERVAL || '3000000'); // 50 分钟
|
const REFRESH_INTERVAL = parseInt(process.env.REFRESH_INTERVAL || '3000000'); // 50 分钟
|
||||||
const CHALLENGE_WAIT = parseInt(process.env.CHALLENGE_WAIT || '30000'); // challenge 最长等待时间
|
const CHALLENGE_WAIT = parseInt(process.env.CHALLENGE_WAIT || '50000'); // challenge 最长等待时间
|
||||||
|
|
||||||
let browser, context, challengePage, workerPage;
|
let browser, context, challengePage, workerPage;
|
||||||
let ready = false;
|
let ready = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user