diff --git a/app/Http/Controllers/MysteryBoxController.php b/app/Http/Controllers/MysteryBoxController.php index ce74228..180a27b 100644 --- a/app/Http/Controllers/MysteryBoxController.php +++ b/app/Http/Controllers/MysteryBoxController.php @@ -147,11 +147,11 @@ class MysteryBoxController extends Controller $typeName = $box->typeName(); if ($reward >= 0) { - $content = "{$emoji}【开箱播报】恭喜 【{$username}】 抢到了神秘{$typeName}!" + $content = "{$emoji}神秘箱子】开箱播报:恭喜 【{$username}】 抢到了神秘{$typeName}!" .'获得 💰'.number_format($reward).' 金币!'; $color = $box->box_type === 'rare' ? '#c4b5fd' : '#34d399'; } else { - $content = "☠️【黑化陷阱】haha!【{$username}】 中了神秘黑化箱的陷阱!" + $content = "☠️【神秘箱子】【黑化陷阱】haha!【{$username}】 中了神秘黑化箱的陷阱!" .'被扣除 💰'.number_format(abs($reward)).' 金币!点背~'; $color = '#f87171'; } diff --git a/app/Http/Requests/UpdateChatPreferencesRequest.php b/app/Http/Requests/UpdateChatPreferencesRequest.php index 4b4e54c..83729d7 100644 --- a/app/Http/Requests/UpdateChatPreferencesRequest.php +++ b/app/Http/Requests/UpdateChatPreferencesRequest.php @@ -35,7 +35,7 @@ class UpdateChatPreferencesRequest extends FormRequest 'blocked_system_senders' => ['nullable', 'array'], 'blocked_system_senders.*' => [ 'string', - Rule::in(['钓鱼播报', '星海小博士', '百家乐', '跑马']), + Rule::in(['钓鱼播报', '星海小博士', '百家乐', '跑马','神秘箱子']), ], 'sound_muted' => ['required', 'boolean'], ]; diff --git a/app/Jobs/DropMysteryBoxJob.php b/app/Jobs/DropMysteryBoxJob.php index 8699358..1e904e3 100644 --- a/app/Jobs/DropMysteryBoxJob.php +++ b/app/Jobs/DropMysteryBoxJob.php @@ -94,7 +94,7 @@ class DropMysteryBoxJob implements ShouldQueue $typeName = $box->typeName(); $source = $this->droppedBy ? '管理员' : '系统'; - $content = "{$emoji}【{$typeName}】{$source}投放了一个神秘箱子!" + $content = "{$emoji}【神秘箱子 }】【{$typeName}】{$source}投放了一个神秘箱子!" ."发送暗号「{$passcode}」即可开箱!限时 {$claimWindow} 秒,先到先得!"; $msg = [ diff --git a/resources/views/chat/partials/scripts.blade.php b/resources/views/chat/partials/scripts.blade.php index 00a2135..65eb677 100644 --- a/resources/views/chat/partials/scripts.blade.php +++ b/resources/views/chat/partials/scripts.blade.php @@ -39,7 +39,7 @@ const onlineCountBottom = document.getElementById('online-count-bottom'); const BLOCKED_SYSTEM_SENDERS_STORAGE_KEY = 'chat_blocked_system_senders'; const CHAT_SOUND_MUTED_STORAGE_KEY = 'chat_sound_muted'; - const BLOCKABLE_SYSTEM_SENDERS = ['钓鱼播报', '星海小博士', '百家乐', '跑马']; + const BLOCKABLE_SYSTEM_SENDERS = ['钓鱼播报', '星海小博士', '百家乐', '跑马','神秘箱子']; // ── 消息区:手机端双触发打开用户名片(PC 端靠 ondblclick 内联属性)── // span[data-u] 由 clickableUser() 生成,touchend 委托至容器避免每条消息单独绑定