feat(WAI): WhatsApp离线接口 offline, 调用实例方法

main
Lei OT 7 months ago
parent b7a1dffe96
commit f51452c919

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

Loading…
Cancel
Save