新增 屏蔽消息功能

This commit is contained in:
2026-04-14 22:25:16 +08:00
parent b76b6559ea
commit 0183de66dd
3 changed files with 197 additions and 1 deletions
@@ -111,7 +111,31 @@ $welcomeMessages = [
style="font-size: 11px; padding: 1px 6px; background: #0f766e; color: #fff; border: none; border-radius: 2px; cursor: pointer;">
📷 图片
</button>
<div style="position:relative;display:inline-block;" id="block-btn-wrap">
<button type="button" onclick="toggleBlockMenu(event)"
style="font-size:11px;padding:1px 6px;background:#475569;color:#fff;border:none;border-radius:2px;cursor:pointer;">
🔕 屏蔽
</button>
<div id="block-menu"
onclick="event.stopPropagation()"
style="display:none;position:absolute;bottom:calc(100% + 6px);left:0;z-index:10020;min-width:168px;padding:10px;background:#f8fafc;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 10px 24px rgba(15,23,42,.18);">
<div style="font-size:10px;color:#475569;padding:0 2px 8px;">选择后立即隐藏对应播报</div>
<label
style="display:flex;align-items:center;gap:6px;font-size:12px;color:#1e293b;cursor:pointer;padding:4px 2px;">
<input type="checkbox" id="block-sender-fishing"
onchange="toggleBlockedSystemSender('钓鱼播报', this.checked)">
钓鱼播报
</label>
<label
style="display:flex;align-items:center;gap:6px;font-size:12px;color:#1e293b;cursor:pointer;padding:4px 2px;">
<input type="checkbox" id="block-sender-doctor"
onchange="toggleBlockedSystemSender('星海小博士', this.checked)">
星海小博士
</label>
</div>
</div>
@if (
$user->user_level >= (int) \App\Models\Sysparam::getValue('level_announcement', '10') ||
$room->master == $user->username ||