老号特权修改

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