fix: 修改 sessionKey 格式为 botId:chatId
之前格式:wecom:chatType:chatId 现在格式:botId:chatId 例如: - aib55ZBHxW398XZkgYgwFPp1cXwtxUWQQf7:group:123456789 - aib55ZBHxW398XZkgYgwFPp1cXwtxUWQQf7:direct:zhangsan 这样每个 Bot 的会话独立管理,符合 OpenClaw 会话管理规范。
This commit is contained in:
@@ -164,8 +164,8 @@ class WeComConnection {
|
|||||||
text = text.replace(/@\S+/g, '').trim();
|
text = text.replace(/@\S+/g, '').trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 构建 sessionKey(格式:wecom:chatType:chatId)
|
// 构建 sessionKey(格式:botId:chatId)
|
||||||
const sessionKey = `wecom:${chatType}:${chatId}`;
|
const sessionKey = `${this.botId}:${chatId}`;
|
||||||
|
|
||||||
// 处理媒体文件
|
// 处理媒体文件
|
||||||
const attachments = [];
|
const attachments = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user