From eb076df7d5226256a4e12e1ffcde05f8a518ec2e Mon Sep 17 00:00:00 2001 From: kron Date: Tue, 26 Aug 2025 18:00:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B0=84=E5=87=BB=E6=97=A0?= =?UTF-8?q?=E6=95=88=E8=AF=AD=E9=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/audioManager.js | 2 ++ src/components/HeaderProgress.vue | 3 ++- src/components/ShootProgress.vue | 3 ++- src/constants.js | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/audioManager.js b/src/audioManager.js index 831ee66..3066a3b 100644 --- a/src/audioManager.js +++ b/src/audioManager.js @@ -45,6 +45,8 @@ const audioFils = { "https://static.shelingxingqiu.com/attachment/2025-07-14/dbbkll0gsuumekhpkn.mp3", "10环": "https://static.shelingxingqiu.com/attachment/2025-07-14/dbbklgw2dk22ek7qha.mp3", + 射击无效: + "https://static.shelingxingqiu.com/attachment/2025-08-26/dcc9qc84rir8gkj3mo.mp3", }; class AudioManager { diff --git a/src/components/HeaderProgress.vue b/src/components/HeaderProgress.vue index 8b41b4c..6b0e2ee 100644 --- a/src/components/HeaderProgress.vue +++ b/src/components/HeaderProgress.vue @@ -60,9 +60,10 @@ async function onReceiveMessage(messages = []) { } } else if (msg.constructor === MESSAGETYPES.InvalidShot) { uni.showToast({ - title: "无效射击", + title: "距离不足,无效", icon: "none", }); + audioManager.play("射击无效"); } else if (msg.constructor === MESSAGETYPES.AllReady) { currentRoundEnded.value = true; audioManager.play("比赛开始"); diff --git a/src/components/ShootProgress.vue b/src/components/ShootProgress.vue index 050b88c..8f52dcf 100644 --- a/src/components/ShootProgress.vue +++ b/src/components/ShootProgress.vue @@ -137,9 +137,10 @@ async function onReceiveMessage(messages = []) { } } else if (msg.constructor === MESSAGETYPES.InvalidShot) { uni.showToast({ - title: "无效射击", + title: "距离不足,无效", icon: "none", }); + audioManager.play("射击无效"); } else if (msg.constructor === MESSAGETYPES.AllReady) { audioManager.play("比赛开始"); } else if (msg.constructor === MESSAGETYPES.MeleeAllReady) { diff --git a/src/constants.js b/src/constants.js index 2770a42..6177499 100644 --- a/src/constants.js +++ b/src/constants.js @@ -23,7 +23,7 @@ export const MESSAGETYPES = { RankUpdate: 1121669910, LvlUpdate: 3958625354, TeamUpdate: 4168086616, - InvalidShot: 4468086617, + InvalidShot: 4168086617, }; export const topThreeColors = ["#FFD947", "#D2D2D2", "#FFA515"];