zoujiajian 2 роки тому
батько
коміт
982e328d7c

+ 3 - 0
netflix-service/src/main/java/com/cyksj/service/market/impl/MarketFrontServiceImpl.java

@@ -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);