@wecom/wecom-openclaw-plugin 1.0.7-beta.1 → 1.0.9-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1122,10 +1122,10 @@ async function processWeComMessage(params) {
|
|
|
1122
1122
|
// Step 1: 解析消息内容
|
|
1123
1123
|
const { textParts, imageUrls, imageAesKeys, fileUrls, fileAesKeys, quoteContent } = parseMessageContent(body);
|
|
1124
1124
|
let text = textParts.join("\n").trim();
|
|
1125
|
-
// 群聊中移除 @机器人 的提及标记
|
|
1126
|
-
if (body.chattype === "group") {
|
|
1127
|
-
|
|
1128
|
-
}
|
|
1125
|
+
// // 群聊中移除 @机器人 的提及标记
|
|
1126
|
+
// if (body.chattype === "group") {
|
|
1127
|
+
// text = text.replace(/@\S+/g, "").trim();
|
|
1128
|
+
// }
|
|
1129
1129
|
// 如果文本为空但存在引用消息,使用引用消息内容
|
|
1130
1130
|
if (!text && quoteContent) {
|
|
1131
1131
|
text = quoteContent;
|