打印日志
parent
1ed8030f32
commit
f0a38deb24
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue