|
|
@@ -476,6 +476,9 @@ public class MarketFrontServiceImpl implements MarketFrontService {
|
|
|
if (index == -1) {
|
|
|
throw BusinessRuntimeException.getInstance("系统异常,请刷新页面重新操作");
|
|
|
}
|
|
|
+ if (index > list.size()) {
|
|
|
+ throw BusinessRuntimeException.getInstance("抽奖异常,请联系客服");
|
|
|
+ }
|
|
|
LuckyDrawView next = list.get(index);
|
|
|
num++;
|
|
|
return randomNum(next, list, num, userId);
|