Merge branch 'master_prb_gn' into master_test_gn

back_recharge
jiahuiwen 2021-12-01 18:49:01 +08:00
commit 275426aadc
2 changed files with 5 additions and 1 deletions

View File

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

View File

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