|
|
@@ -395,7 +395,7 @@ public class MarketFrontServiceImpl implements MarketFrontService {
|
|
|
}
|
|
|
LuckyDrawView next = list.get(index);
|
|
|
num++;
|
|
|
- if (num == 3) {
|
|
|
+ if (num >= 3) {
|
|
|
return null;
|
|
|
}
|
|
|
return randomNum(next, list, num, userId);
|
|
|
@@ -409,7 +409,7 @@ public class MarketFrontServiceImpl implements MarketFrontService {
|
|
|
if (luckyDrawView.getNum() - incr > 0) {
|
|
|
redisService.incr(key, 1l);
|
|
|
} else {
|
|
|
- if (num == 3) {
|
|
|
+ if (num >= 3) {
|
|
|
return null;
|
|
|
}
|
|
|
Integer index = randomProbabilityIndex(list);
|