From f51452c919c633184e028de6bcc93c8aa48812ad Mon Sep 17 00:00:00 2001 From: Lei OT Date: Thu, 18 Sep 2025 16:46:56 +0800 Subject: [PATCH] =?UTF-8?q?feat(WAI):=20WhatsApp=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=20offline,=20=E8=B0=83=E7=94=A8=E5=AE=9E?= =?UTF-8?q?=E4=BE=8B=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wai-server/api/channels/channel.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wai-server/api/channels/channel.controller.js b/wai-server/api/channels/channel.controller.js index 21ab354..c9ba6e7 100644 --- a/wai-server/api/channels/channel.controller.js +++ b/wai-server/api/channels/channel.controller.js @@ -44,7 +44,7 @@ const offline = async ctx => { ctx.assert(existsSession, 400, `WhatsApp ${phone} 已离线`); try { getUserLogger(phone).info(`WhatsApp ${phone} 准备离线`); - // existsSession.stop(); // todo: + existsSession.stop(); // sessionStore.removeSession(existsSession.channelId); waEmitter.emit('connection:close', { phone, whatsAppNo: phone, status: 'offline', channelId: existsSession.channelId }); return ''; // { wsToSend, ret: 'Message sent successfully' };