修复悄悄话文字颜色及不能发数字0的问题

This commit is contained in:
2026-04-11 22:48:15 +08:00
parent ff402be02f
commit dd9a8c5db8
4 changed files with 37 additions and 3 deletions
@@ -725,7 +725,8 @@
const verbStr = msg.action ?
buildActionStr(msg.action, fromHtml, toHtml, '悄悄说') :
`${fromHtml}对${toHtml}悄悄说:`;
html = `<span class="msg-secret">${headImg}${verbStr}${msg.content}</span>`;
html =
`${headImg}<span class="msg-secret">${verbStr}</span><span class="msg-content" style="color: ${fontColor}; font-style: italic;">${msg.content}</span>`;
}
} else if (msg.to_user && msg.to_user !== '大家') {
// 对特定对象说话