完成用户升级交互

This commit is contained in:
kron
2025-07-23 20:47:31 +08:00
parent 76e85501d5
commit b1874ba830
6 changed files with 124 additions and 72 deletions

View File

@@ -61,9 +61,9 @@ function createWebSocket(token, onMessage) {
} else if (msg.constructor === MESSAGETYPES.MatchOver) {
uni.$emit("game-over");
} else if (msg.constructor === MESSAGETYPES.RankUpdate) {
console.log("RankUpdate", msg);
uni.setStorageSync("latestRank", msg.lvl);
} else if (msg.constructor === MESSAGETYPES.LvlUpdate) {
uni.setStorageSync("latest-lvl", msg.lvl);
uni.setStorageSync("latestLvl", msg.lvl);
} else if (msg.constructor === MESSAGETYPES.PaySuccess) {
console.log(1111111, msg);
}