特权创角初始化
parent
3a32b7889d
commit
caee7ba2a1
|
@ -532,6 +532,9 @@ public class PlayerManager extends MongoBase {
|
|||
|
||||
public void updateVipInfo(int unlockType,int condition) {
|
||||
Map<Integer, Map<Integer, Integer>> conditionMap = SPrivilegeTypeConfig.conditionMap.get(unlockType);
|
||||
if (conditionMap == null || conditionMap.isEmpty()){
|
||||
return;
|
||||
}
|
||||
for(Map.Entry<Integer, Map<Integer, Integer>> entry:conditionMap.entrySet()){
|
||||
if(entry.getValue().containsKey(condition)){
|
||||
if(!vipInfo.containsKey(entry.getKey())) {
|
||||
|
|
|
@ -144,6 +144,8 @@ public class UserManager {
|
|||
playerManager.setSendDays(1);
|
||||
playerManager.updateVipInfo(GlobalsDef.LEVEL_UNLOCK_PRIVILEGE,1);
|
||||
playerManager.updateVipInfo(GlobalsDef.VIP_UNLOCK_PRIVILEGE,0);
|
||||
playerManager.updateVipInfo(GlobalsDef.GOD_LV_UNLOCK,0);
|
||||
playerManager.updateVipInfo(GlobalsDef.RENOWN_LV_UNLOCK,0);
|
||||
playerManager.setNewRechargeInfo(new NewRechargeInfo());
|
||||
playerManager.setPhoneBindInfo(new PhoneBindInfo(""));
|
||||
playerManager.setChannel(channel);
|
||||
|
|
Loading…
Reference in New Issue