打印日志

back_recharge
lvxinran 2021-07-05 11:44:03 +08:00
parent 1ed8030f32
commit f0a38deb24
1 changed files with 7 additions and 0 deletions

View File

@ -699,7 +699,9 @@ public class BuyGoodsNewLogic {
int popup = 0; int popup = 0;
boolean push = false; boolean push = false;
for(SPackPushConfig con : list){ for(SPackPushConfig con : list){
LOGGER.info("判断的id:{}",con.getId());
int bagId = judgePushCondition(user,con); int bagId = judgePushCondition(user,con);
LOGGER.info("判断结果为:{}",bagId);
//条件成功 //条件成功
if(bagId > 0 && info.getNextPushTime() < System.currentTimeMillis()){ if(bagId > 0 && info.getNextPushTime() < System.currentTimeMillis()){
popup = bagId; popup = bagId;
@ -732,21 +734,25 @@ public class BuyGoodsNewLogic {
if(scope[0] == 1){//主线关卡 if(scope[0] == 1){//主线关卡
int mainLevel = user.getMainLevelManager().getFightId(); int mainLevel = user.getMainLevelManager().getFightId();
if(mainLevel < scope[1]){ if(mainLevel < scope[1]){
LOGGER.info("aaaa");
return -1; return -1;
} }
}else if(scope[0] == 2){//爬塔 }else if(scope[0] == 2){//爬塔
int towerLevel = con.getConditionId()[1]; int towerLevel = con.getConditionId()[1];
if(towerLevel < scope[1]){ if(towerLevel < scope[1]){
LOGGER.info("bbbb");
return -1; return -1;
} }
}else if(scope[0] == 3){//玩家等级 }else if(scope[0] == 3){//玩家等级
int level = user.getPlayerInfoManager().getLevel(); int level = user.getPlayerInfoManager().getLevel();
if(level < scope[1]){ if(level < scope[1]){
LOGGER.info("cccc");
return -1; return -1;
} }
}else if(scope[0] == 7){ }else if(scope[0] == 7){
double mxr = user.getPlayerInfoManager().getNewRechargeInfo().getMaxSingleR(); double mxr = user.getPlayerInfoManager().getNewRechargeInfo().getMaxSingleR();
if(mxr < scope[1]){ if(mxr < scope[1]){
LOGGER.info("dddd");
return -1; return -1;
} }
} }
@ -759,6 +765,7 @@ public class BuyGoodsNewLogic {
} }
} }
if(con.getPersonas()[index] > rr){ if(con.getPersonas()[index] > rr){
LOGGER.info("eeee");
return -1; return -1;
} }
return con.getPacks()[index]; return con.getPacks()[index];