From f0a38deb24427e3d6858275c3029faad38e2cc40 Mon Sep 17 00:00:00 2001 From: lvxinran Date: Mon, 5 Jul 2021 11:44:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java index 2249b8cf9..4aea97538 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java @@ -699,7 +699,9 @@ public class BuyGoodsNewLogic { int popup = 0; boolean push = false; for(SPackPushConfig con : list){ + LOGGER.info("判断的id:{}",con.getId()); int bagId = judgePushCondition(user,con); + LOGGER.info("判断结果为:{}",bagId); //条件成功 if(bagId > 0 && info.getNextPushTime() < System.currentTimeMillis()){ popup = bagId; @@ -732,21 +734,25 @@ public class BuyGoodsNewLogic { if(scope[0] == 1){//主线关卡 int mainLevel = user.getMainLevelManager().getFightId(); if(mainLevel < scope[1]){ + LOGGER.info("aaaa"); return -1; } }else if(scope[0] == 2){//爬塔 int towerLevel = con.getConditionId()[1]; if(towerLevel < scope[1]){ + LOGGER.info("bbbb"); return -1; } }else if(scope[0] == 3){//玩家等级 int level = user.getPlayerInfoManager().getLevel(); if(level < scope[1]){ + LOGGER.info("cccc"); return -1; } }else if(scope[0] == 7){ double mxr = user.getPlayerInfoManager().getNewRechargeInfo().getMaxSingleR(); if(mxr < scope[1]){ + LOGGER.info("dddd"); return -1; } } @@ -759,6 +765,7 @@ public class BuyGoodsNewLogic { } } if(con.getPersonas()[index] > rr){ + LOGGER.info("eeee"); return -1; } return con.getPacks()[index];