From 9e7f8ceb2f0a4456d67649183350d6290d1e66dc Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Tue, 7 Jan 2025 08:47:22 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20=E5=88=A0=E9=99=A4=E4=B8=8D=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wai-server/core/baileys/index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/wai-server/core/baileys/index.js b/wai-server/core/baileys/index.js index 789168c..b89486c 100644 --- a/wai-server/core/baileys/index.js +++ b/wai-server/core/baileys/index.js @@ -28,7 +28,7 @@ const createWhatsApp = async phone => { const whatsAppNo = phone; // 缓存 msgId-externalId,过期时间为 5 分钟 const externalIdCache = new NodeCache({ stdTTL: 60*5 }); - // 缓存群信息,过期时间为 5 分钟 + // 缓存群信息,过期时间为 24 小时 const groupSubjectCache = new NodeCache({ stdTTL: 60*60*24 }); const logger = P({ timestamp: () => `,"time":"${new Date().toJSON()}"` }, P.destination('./logs/wa-logs-' + phone + '_' + channelId + '.txt')); logger.level = 'trace'; @@ -57,10 +57,6 @@ const createWhatsApp = async phone => { creds: state.creds, keys: makeCacheableSignalKeyStore(state.keys, logger), }, - // connectTimeoutMs: 1000*60*10, - // defaultQueryTimeoutMs: 1000*60*1, - // keepAliveIntervalMs: 1000*60*60, - //retryRequestDelayMs: 1000*25, // https://github.com/WhiskeySockets/Baileys/blob/31bc8ab/src/Utils/generics.ts#L21 // https://github.com/WhiskeySockets/Baileys/blob/31bc8ab4e2c825c0d774875701ed07e20d05bdb6/WAProto/WAProto.proto browser: Browsers.macOS('SAFARI'),//Browsers.macOS('SAFARI'),//Browsers.ubuntu('IOS_PHONE'),//Browsers.baileys('WEAR_OS'),//