重置天宫商店

back_recharge
jiahuiwen 2021-12-01 17:55:46 +08:00
parent c4e252a3ed
commit 5c4874ab9e
2 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,7 @@ package com.ljsd.jieling.core;
public interface GlobalsDef {
String DEFAULT_NAME = "无名妖灵师";
int VERSION_CODE=2;//后端兼容版本号
int VERSION_CODE=3;//后端兼容版本号
int MAP_MISSION_RETURN = -9999;
int MAP_MISSION_FAILURE = -10000;

View File

@ -168,6 +168,10 @@ public class GetPlayerInfoHandler extends BaseHandler{
if (playerInfoManager.getVersionCode()<2){
calHeroHandBookData(user);
}
// 重置天宫商店
if (playerInfoManager.getVersionCode()<3){
user.getStoreManager().removeStoreInfo(17);
}
playerInfoManager.setVersionCode(GlobalsDef.VERSION_CODE);
}
// 处理玩家旧头像框,兼容,一个玩家只执行一次