修改字段

This commit is contained in:
kron
2025-07-17 15:50:49 +08:00
parent bb3d251041
commit 62aba0831b
5 changed files with 16 additions and 8 deletions

View File

@@ -156,11 +156,12 @@ async function onReceiveMessage(messages = []) {
}
if (msg.constructor === MESSAGETYPES.MatchOver) {
uni.setStorageSync("last-battle", msg.endStatus);
if (msg.endStatus.nosaved) {
if (msg.endStatus.noSaved) {
uni.showToast({
title: "游戏结束",
icon: "none",
});
uni.navigateBack();
} else {
uni.redirectTo({
url: `/pages/battle-result?battleId=${msg.id}`,