修改升级接收方式

This commit is contained in:
kron
2025-07-22 09:36:38 +08:00
parent cbf83952d7
commit d3029865cf
8 changed files with 36 additions and 42 deletions

View File

@@ -227,7 +227,7 @@ async function onReceiveMessage(messages = []) {
}
}
if (msg.constructor === MESSAGETYPES.MatchOver) {
uni.setStorageSync("last-battle", { ...msg.endStatus, lvl: msg.lvl });
uni.setStorageSync("last-battle", msg.endStatus);
if (msg.endStatus.noSaved) {
uni.showToast({
title: "游戏结束",