完成用户升级交互
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user