变更:修复求婚同意消息未收到问题,重构求婚流程支持直接选婚礼档位

This commit is contained in:
2026-03-01 17:53:43 +08:00
parent b7ded61523
commit 52c252f525
5 changed files with 162 additions and 36 deletions
+3 -3
View File
@@ -77,19 +77,19 @@ export function initChat(roomId) {
);
})
// ─── 婚姻系统:全局事件(广播给整个房间) ────────────────
.listen("MarriageAccepted", (e) => {
.listen(".marriage.accepted", (e) => {
console.log("结婚公告:", e);
window.dispatchEvent(
new CustomEvent("chat:marriage-accepted", { detail: e }),
);
})
.listen("MarriageDivorced", (e) => {
.listen(".marriage.divorced", (e) => {
console.log("离婚公告:", e);
window.dispatchEvent(
new CustomEvent("chat:marriage-divorced", { detail: e }),
);
})
.listen("WeddingCelebration", (e) => {
.listen(".wedding.celebration", (e) => {
console.log("婚礼庆典:", e);
window.dispatchEvent(
new CustomEvent("chat:wedding-celebration", { detail: e }),