Open hmllsnow opened 5 months ago
当群text类型消息包含:\n时,消息被截断。 检查可能是wechat4u/schema-mapper/message/message-parser-room.ts类中, 可能是消息内容处理存在问题 const parts = webMessageRawPayload.Content.split(':\n') if (parts.length > 1) { text = parts[1] } else { text = webMessageRawPayload.Content }
Good catch! I would love to accept a PR with Unit Test to fix it!
The possible solution I discovered. const split = content.split(/^.+:\n/) Including the function roomMessageSentBySelf.
const split = content.split(/^.+:\n/)
roomMessageSentBySelf
当群text类型消息包含:\n时,消息被截断。 检查可能是wechat4u/schema-mapper/message/message-parser-room.ts类中, 可能是消息内容处理存在问题 const parts = webMessageRawPayload.Content.split(':\n') if (parts.length > 1) { text = parts[1] } else { text = webMessageRawPayload.Content }