update script

This commit is contained in:
yincong
2026-01-19 12:46:05 +08:00
parent abfada6c0f
commit 88a3463441
4 changed files with 17 additions and 17 deletions
+8 -2
View File
@@ -1122,14 +1122,20 @@ function setReceiver() {
}
}
senderUser = content.substring(0, splitIndex).trim();
const sendUserStart = content.indexOf('wxid_')
senderUser = content.substring(sendUserStart, splitIndex).trim();
messages = [];
const parts = content.split('\u2005');
for (let part of parts) {
part = part.trim();
if (!part.startsWith("@")) {
messages.push({type: "text", data: {text: part}});
if (part.indexOf(":") !== -1) {
messages.push({type: "text", data: {text: part.substring(part.indexOf(':') + 1)}});
} else {
messages.push({type: "text", data: {text: part}});
}
}
}