天天0.1折活动增加位置开启条件
parent
ccb04c698f
commit
073e54db5f
|
@ -2,6 +2,7 @@ package com.ljsd.jieling.logic.activity;
|
|||
|
||||
import com.ljsd.jieling.exception.ErrorTableException;
|
||||
import com.ljsd.jieling.globals.BIReason;
|
||||
import com.ljsd.jieling.handler.map.MapLogic;
|
||||
import com.ljsd.jieling.jbean.ActivityMission;
|
||||
import com.ljsd.jieling.jbean.ActivityProgressInfo;
|
||||
import com.ljsd.jieling.logic.activity.event.*;
|
||||
|
@ -203,19 +204,12 @@ public class EveryDayDiscountActivity extends AbstractActivity {
|
|||
/**
|
||||
* 判断档位是否解锁
|
||||
*/
|
||||
public static boolean ifOpen(User user, int id) {
|
||||
public static boolean ifOpen(User user, int id) throws Exception {
|
||||
SEveryDayGift dayGift = SEveryDayGift.map.get(id);
|
||||
if (dayGift == null){
|
||||
return false;
|
||||
}
|
||||
for (int[] ints : dayGift.getCondition()) {
|
||||
if (ints[0] == 1) { // 等级
|
||||
if (user.getPlayerInfoManager().getLevel() < ints[1]) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
return MapLogic.getInstance().checkMainLevelOpen(user, dayGift.getCondition());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue