From c832cae4de3ff53e3b80cad317fbdd84de46c02d Mon Sep 17 00:00:00 2001
From: hjl <1657978663@qq.com>
Date: 星期五, 19 七月 2024 09:31:34 +0800
Subject: [PATCH] fix: 学习端bug

---
 ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/controller/TStoryController.java |   22 ++--------------------
 1 files changed, 2 insertions(+), 20 deletions(-)

diff --git a/ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/controller/TStoryController.java b/ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/controller/TStoryController.java
index 3a4bb80..87356f6 100644
--- a/ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/controller/TStoryController.java
+++ b/ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/controller/TStoryController.java
@@ -29,25 +29,7 @@
 @RequestMapping("/base/tStory")
 public class TStoryController {
     @Autowired
-    private ITStudyAnswerService studyAnswerService;
-    @Autowired
-    private ITStudyInductionService studyInductionService;
-    @Autowired
-    private ITStudyLookService studyLookService;
-    @Autowired
-    private ITStudyListenService studyListenService;
-    @Autowired
-    private ITStudyPairService studyPairService;
-    @Autowired
-    private ITGameService gameService;
-    @Autowired
     private ITStoryListenService storyListenService;
-    @Autowired
-    private ITSubjectService subjectService;
-    @Autowired
-    private ITStoryService storyService;
-    @Autowired
-    private ITStudyService studyService;
     @Autowired
     private ITStoryService service;
     @PostMapping("/storyList")
@@ -135,13 +117,13 @@
                 for (String s : split) {
                     if (s.equals(String.valueOf(id))) {
                         Integer week = tStudyListen.getWeek();
-                        return R.fail("操作失败,当前题目在" + "周目" + week + "、" + "听故事"  + "、" + "框架记忆中使用");
+                        return R.failUpdate("操作失败,当前题目在" + "周目" + week + "、" + "听故事"  + "、" + "框架记忆中使用");
                     }
                 }
                 for (String s : split1) {
                     if (s.equals(String.valueOf(id))) {
                         Integer week = tStudyListen.getWeek();
-                        return R.fail("操作失败,当前题目在" + "周目" + week + "、" + "听故事"  + "、" + "看图配音中使用");
+                        return R.failUpdate("操作失败,当前题目在" + "周目" + week + "、" + "听故事"  + "、" + "看图配音中使用");
                     }
                 }
             }

--
Gitblit v1.7.1