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