权限修改

back_recharge
lvxinran 2020-01-02 16:57:25 +08:00
parent 9e542cd1cb
commit 99496504fb
3 changed files with 8 additions and 4 deletions

View File

@ -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;

View File

@ -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 "";
}

View File

@ -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;
}
}