心魔领奖添加验证
parent
db8974a8c8
commit
43e53006c2
|
@ -6,7 +6,6 @@ import com.ljsd.jieling.exception.ErrorCodeException;
|
|||
import com.ljsd.jieling.globals.BIReason;
|
||||
import com.ljsd.jieling.logic.dao.UserManager;
|
||||
import com.ljsd.jieling.logic.dao.root.User;
|
||||
import com.ljsd.jieling.logic.item.ItemLogic;
|
||||
import com.ljsd.jieling.util.ItemUtil;
|
||||
import config.SFloodConfig;
|
||||
import manager.STableManager;
|
||||
|
@ -44,6 +43,12 @@ public class GetDemonsTrialRewardHandler extends BaseHandler<MapInfoProto.Demons
|
|||
}
|
||||
// 表里是否有配置
|
||||
SFloodConfig sFloodConfig = STableManager.getConfig(SFloodConfig.class).get(layerId);
|
||||
|
||||
// 关卡判断
|
||||
if (user.getMapManager().getLastMonsterAttack() < sFloodConfig.getId()){
|
||||
throw new ErrorCodeException(ErrorCode.PHONE_GET,"未达到领取条件");
|
||||
}
|
||||
|
||||
int[][] reward = sFloodConfig.getSpecialReward();
|
||||
if (reward == null || reward.length <= 0) {
|
||||
throw new ErrorCodeException(ErrorCode.SYS_ERROR_CODE);
|
||||
|
|
Loading…
Reference in New Issue