From e7de9fb9e15959ac224d49b029efd1eedd606092 Mon Sep 17 00:00:00 2001
From: huliguo <2023611923@qq.com>
Date: 星期二, 29 七月 2025 14:39:02 +0800
Subject: [PATCH] bug修改

---
 ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/miniapp/AppLotteryEventController.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/miniapp/AppLotteryEventController.java b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/miniapp/AppLotteryEventController.java
index 21fc9f1..96ea49c 100644
--- a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/miniapp/AppLotteryEventController.java
+++ b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/miniapp/AppLotteryEventController.java
@@ -190,11 +190,11 @@
 				}
 				current--;
 			} else {
+				current++;
 				//下一题
 				if (current >= count) {
 					return R.fail("操作失败");
 				}
-				current++;
 			}
 			List<TLotteryEventQuestions> list = lotteryEventServiceQuestionsService.list(new QueryWrapper<TLotteryEventQuestions>().eq("lottery_event_id", dto.getId()).orderByAsc("sort"));
 			TLotteryEventQuestions lotteryEventQuestions = list.get(current);
@@ -258,6 +258,8 @@
 			one.setIsCorrect(1);
 		}
 		userLotteryEventQuestionsAnswersService.saveOrUpdate(one);
+		//判断
+
 		return R.ok();
 	}
 	

--
Gitblit v1.7.1