老号特权修改

lvxinran 2020-12-30 02:04:05 +08:00
parent b99117fe0b
commit da8f86864d
1 changed files with 5 additions and 4 deletions

View File

@ -81,10 +81,11 @@ public class GetPlayerInfoHandler extends BaseHandler{
Map<Integer, Integer> guidePoints = playerInfoManager.getGuidePoints(); Map<Integer, Integer> guidePoints = playerInfoManager.getGuidePoints();
Map<Integer, VipInfo> vipInfo = playerInfoManager.getVipInfo(); Map<Integer, VipInfo> vipInfo = playerInfoManager.getVipInfo();
List<CommonProto.NewPlayerGuidePoint> list = new ArrayList<>(); List<CommonProto.NewPlayerGuidePoint> list = new ArrayList<>();
SGameSetting setting = STableManager.getConfig(SGameSetting.class).get(1); Map<Integer, SPrivilegeTypeConfig> privilegeTypeConfigMap = SPrivilegeTypeConfig.getsPrivilegeTypeConfigMap();
for(int[] vip:setting.getItemAdd()){ for(Map.Entry<Integer, SPrivilegeTypeConfig> entry:privilegeTypeConfigMap.entrySet()){
if(vip.length>3&&!vipInfo.containsKey(vip[3])){ //如果是<4 系统内置特权
playerInfoManager.addVipInfo(vip[3]); if(entry.getValue().getUnlockType()<4&&!vipInfo.containsKey(entry.getKey())){
playerInfoManager.addVipInfo(entry.getKey());
} }
} }
List<CommonProto.Privilege> privilegeList = new ArrayList<>(); List<CommonProto.Privilege> privilegeList = new ArrayList<>();