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'),//