Task【ID1005229】【特权调整】

back_recharge
zhangshanxue 2019-12-19 10:36:35 +08:00
parent 96c02199d1
commit 31c5e9184d
1 changed files with 4 additions and 1 deletions

View File

@ -54,7 +54,10 @@ public class SVipLevelConfig implements BaseConfig {
//根据钱返回当前特权等级
public static int getsVipLevel(int money) {
Map.Entry<Integer,Integer> entry = money2vip.ceilingEntry(money);
return entry==null?money2vip.lastEntry().getValue():entry.getValue();
if(null==entry){
return money2vip.lastEntry().getValue();
}
return entry.getKey()==money?(entry.getValue()+1):entry.getValue();
}
public int getVipLevel() {