修复聊天室离开播报:显式点击离开按钮时绕过队列防抖,同步发送离开广播,解决本地无队列运行时播报丢失的问题

This commit is contained in:
2026-04-02 16:21:35 +08:00
parent fa5e37f003
commit a562ecca72
4 changed files with 44 additions and 17 deletions
+3 -3
View File
@@ -235,11 +235,11 @@
* 优先级:如果有新人礼包特效,优先播放新人大礼包;如果没有,再播放周卡特效
*/
setTimeout(() => {
if (window.EffectManager) {
if (typeof EffectManager !== 'undefined') {
@if (!empty($newbieEffect))
window.EffectManager.play('{{ $newbieEffect }}');
EffectManager.play('{{ $newbieEffect }}');
@elseif (!empty($weekEffect))
window.EffectManager.play('{{ $weekEffect }}');
EffectManager.play('{{ $weekEffect }}');
@endif
}
}, 1000);
@@ -1413,7 +1413,7 @@
clearTimeout(visibilityTimer);
try {
await fetch(window.chatContext.leaveUrl, {
await fetch(window.chatContext.leaveUrl + '?explicit=1', {
method: 'POST',
headers: {
'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute(