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' };