权限修改
parent
9e542cd1cb
commit
99496504fb
|
@ -35,7 +35,7 @@ public interface VipPrivilegeType {
|
|||
|
||||
int UNLOCK_ADVENTURE_ONEKEY = 504;//解锁挂机一键收取
|
||||
int UNLOCK_SKIP_FIGHT = 505;//解锁跳过战斗功能
|
||||
|
||||
int UNLOCK_SKIP_ARENA = 511;//解锁跳过竞技场战斗功能
|
||||
int UNLOCK_STAR_EXTRA_REWARD = 506;
|
||||
int UNLOCK_TRIAL_BOMB_REWARD = 507;
|
||||
|
||||
|
|
|
@ -316,7 +316,7 @@ public class ArenaLogic {
|
|||
return "对手错误";
|
||||
}
|
||||
if(skipFight == 1){
|
||||
boolean allowed = user.getPlayerInfoManager().checkFunctionIsAllowed(VipPrivilegeType.UNLOCK_SKIP_FIGHT);
|
||||
boolean allowed = user.getPlayerInfoManager().checkFunctionIsAllowed(VipPrivilegeType.UNLOCK_SKIP_ARENA);
|
||||
if(!allowed){
|
||||
return "not allowed";
|
||||
}
|
||||
|
@ -332,8 +332,6 @@ public class ArenaLogic {
|
|||
if(!enough){
|
||||
throw new ErrorCodeException(ErrorCode.ITEM_NOT_ENOUGH);
|
||||
}
|
||||
}else{
|
||||
user.getPlayerInfoManager().updateVipPrivilage(battleFree,1);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
|
|
@ -15,6 +15,8 @@ public class SPrivilegeTypeConfig implements BaseConfig {
|
|||
|
||||
private int type;
|
||||
|
||||
private int privilegeType;
|
||||
|
||||
private int[] refreshType;
|
||||
|
||||
private int maxTimes;
|
||||
|
@ -84,4 +86,8 @@ public class SPrivilegeTypeConfig implements BaseConfig {
|
|||
public int getContinueTime() {
|
||||
return continueTime;
|
||||
}
|
||||
|
||||
public int getPrivilegeType() {
|
||||
return privilegeType;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue