|
@@ -84,8 +84,8 @@ public class PrizeController {
|
|
response.getWriter().println(msg.toJSONStr());
|
|
response.getWriter().println(msg.toJSONStr());
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- // if (luckDrawCount == 0) {
|
|
|
|
- // 直接抽奖
|
|
|
|
|
|
+ // if (luckDrawCount <= 1) {
|
|
|
|
+ // 直接抽奖(每日默认2次抽奖机会)
|
|
count = getLuckDraw(prizeRecord, count);
|
|
count = getLuckDraw(prizeRecord, count);
|
|
// 添加抽奖记录
|
|
// 添加抽奖记录
|
|
UserPrizeCount userPrizeCount = new UserPrizeCount();
|
|
UserPrizeCount userPrizeCount = new UserPrizeCount();
|
|
@@ -94,7 +94,7 @@ public class PrizeController {
|
|
map.put("prizeLevel", count);
|
|
map.put("prizeLevel", count);
|
|
map.put("prizeRecord", prizeRecord);
|
|
map.put("prizeRecord", prizeRecord);
|
|
msg.data = map;
|
|
msg.data = map;
|
|
- // } else if (luckDrawCount == 1) {
|
|
|
|
|
|
+ // } else if (luckDrawCount == 2) {
|
|
// int opportunityCount =
|
|
// int opportunityCount =
|
|
// prizeOpportunityMapper.selectCountByToday(userId);
|
|
// prizeOpportunityMapper.selectCountByToday(userId);
|
|
// if (opportunityCount > 0) {
|
|
// if (opportunityCount > 0) {
|