diff --git a/electron/main.js b/electron/main.js index 16bbdba..776b7f2 100644 --- a/electron/main.js +++ b/electron/main.js @@ -164,8 +164,8 @@ class WeComConnection { text = text.replace(/@\S+/g, '').trim(); } - // 构建 sessionKey(格式:wecom:chatType:chatId) - const sessionKey = `wecom:${chatType}:${chatId}`; + // 构建 sessionKey(格式:botId:chatId) + const sessionKey = `${this.botId}:${chatId}`; // 处理媒体文件 const attachments = [];