diff --git a/config/index.js b/config/index.js index 5f803c8..2be4cb4 100644 --- a/config/index.js +++ b/config/index.js @@ -18,10 +18,10 @@ export const Config = { // conversationPreserveTime: 600, // UA: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36', // 服务器无interface的话只能用true,但是可能遇到验证码就一定要配置下面的2captchaToken了 + // true时使用无头模式,无界面的服务器可以为true,但遇到验证码时可能无法使用。 headless: false, // 为空使用默认puppeteer的chromium,也可以传递自己本机安装的Chrome可执行文件地址,提高通过率 - // 目前库暂时不支持指定chrome - chromePath: 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe', + chromePath: '', // 可注册2captcha实现跳过验证码,收费服务但很便宜。否则需要手点 '2captchaToken': '' }