升级逻辑完善

This commit is contained in:
kron
2025-07-19 00:03:12 +08:00
parent c8728786e6
commit b9aff0082b
5 changed files with 35 additions and 34 deletions

View File

@@ -453,7 +453,7 @@ async function onReceiveMessage(messages = []) {
tips.value = "准备下半场";
}
if (msg.constructor === MESSAGETYPES.MatchOver) {
uni.setStorageSync("last-battle", msg.endStatus);
uni.setStorageSync("last-battle", { ...msg.endStatus, lvl: msg.lvl });
if (msg.endStatus.nosaved) {
uni.showToast({
title: "游戏结束",