| @@ -156,7 +156,10 @@ public class WxGameServiceImpl implements WxGameService { | |||||
| int playLimit = wxGame.getPlayLimit(); | int playLimit = wxGame.getPlayLimit(); | ||||
| int playCreditLimit = wxGame.getPlayCreditLimit(); | int playCreditLimit = wxGame.getPlayCreditLimit(); | ||||
| int playCredit = wxGame.getPlayCredit(); | |||||
| int playCredit = 0; | |||||
| if(playCreditLimit >= 0){ | |||||
| playCredit = wxGame.getPlayCredit(); | |||||
| } | |||||
| int AwardLimit = wxGame.getAwardLimit(); | int AwardLimit = wxGame.getAwardLimit(); | ||||
| int playCount = wxGameActionLogMapper.getPlayCount(wxGameActionLog); | int playCount = wxGameActionLogMapper.getPlayCount(wxGameActionLog); | ||||
| int playCreditCount = wxGameActionLogMapper.getPlayCreditCount(wxGameActionLog); | int playCreditCount = wxGameActionLogMapper.getPlayCreditCount(wxGameActionLog); | ||||
| @@ -168,7 +171,9 @@ public class WxGameServiceImpl implements WxGameService { | |||||
| Map<String,Object> map = new HashMap(); | Map<String,Object> map = new HashMap(); | ||||
| map.put("playLimit",playLimit);//免费次数限制(为0是不限制次数,为-1是不能玩) | map.put("playLimit",playLimit);//免费次数限制(为0是不限制次数,为-1是不能玩) | ||||
| map.put("playCreditLimit",playCreditLimit);//消耗积分次数限制(为0是不限制次数,为-1是不能玩) | map.put("playCreditLimit",playCreditLimit);//消耗积分次数限制(为0是不限制次数,为-1是不能玩) | ||||
| map.put("playCredit",playCredit);//消耗积分数量 | |||||
| if(playCreditLimit >= 0){ | |||||
| map.put("playCredit",playCredit);//消耗积分数量 | |||||
| } | |||||
| map.put("AwardLimit",AwardLimit);//中奖次数限制(为0是不限制次数) | map.put("AwardLimit",AwardLimit);//中奖次数限制(为0是不限制次数) | ||||
| map.put("playCount",playCount);//当前玩的免费次数 | map.put("playCount",playCount);//当前玩的免费次数 | ||||
| map.put("playCreditCount",playCreditCount);//当前玩的消耗积分次数 | map.put("playCreditCount",playCreditCount);//当前玩的消耗积分次数 | ||||
| @@ -185,6 +190,7 @@ public class WxGameServiceImpl implements WxGameService { | |||||
| } | } | ||||
| map.put("playAble",playAble); | map.put("playAble",playAble); | ||||
| logger.info(map.toString()); | |||||
| return new ResultData(map); | return new ResultData(map); | ||||
| } | } | ||||