update:新版本websocket

This commit is contained in:
2026-07-10 13:57:09 +08:00
parent 58a7bb2017
commit b5373bee31
11 changed files with 216 additions and 31 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ async function onReceiveMessage(msg) {
if (msg.details && Array.isArray(msg.details)) {
arrow = msg.details[msg.details.length - 1];
} else {
if (msg.shootData.playerId !== user.value.id) return;
if (!msg.shootData || String(msg.shootData.playerId) !== String(user.value.id)) return;
if (msg.shootData) arrow = msg.shootData;
}
let key = [];