deason 7 năm trước cách đây
mục cha
commit
6f3204ba23

+ 3 - 2
src/main/java/cn/com/qmth/examcloud/app/controller/v1/PracticeExamRestController.java

@@ -57,19 +57,20 @@ public class PracticeExamRestController {
     @ApiOperation(value = "获取当前练习的试卷大题结构信息接口")
     @RequestMapping(value = "/exam/record/paper/struct/list", method = {RequestMethod.GET, RequestMethod.POST})
     public Result getExamRecordPaperStructList(@RequestHeader String key, @RequestHeader String token, @RequestParam String examRecordId) throws Exception {
-        return netExamService.getExamRecordPaperStructList(key, token, examRecordId);//todo
+        return netExamService.getExamRecordPaperStructList(key, token, examRecordId);
     }
 
     @ApiOperation(value = "获取当前练习的考试基本信息接口")
     @RequestMapping(value = "/exam/info/{examId}", method = {RequestMethod.GET, RequestMethod.POST})
     public Result getExamInfo(@RequestHeader String key, @RequestHeader String token, @PathVariable Long examId) throws Exception {
+        //todo format result
         return examAdminService.getExamInfo(key, token, examId);
     }
 
     @ApiOperation(value = "获取当前练习的试卷试题列表接口")
     @RequestMapping(value = "/exam/record/paper/question/list", method = {RequestMethod.GET, RequestMethod.POST})
     public Result getExamRecordPaperQuestionList(@RequestHeader String key, @RequestHeader String token, @RequestParam String examRecordId) throws Exception {
-        return netExamService.getExamRecordPaperQuestionList(key, token, examRecordId);
+        return netExamService.getExamRecordPaperQuestionList(key, token, examRecordId);//todo
     }
 
     @ApiOperation(value = "获取考生作答的某个试题的详细信息接口")

+ 3 - 1
src/main/java/cn/com/qmth/examcloud/app/service/ExamAdminService.java

@@ -30,7 +30,9 @@ public class ExamAdminService {
     }
 
     public Result getExamInfo(String key, String token, Long examId) throws Exception {
-        return null;
+        //封装请求参数
+        final String requestUrl = String.format("%s/api/ecs_exam_work/exam/%s", propertyService.getExamAdminUrl(), examId);
+        return HttpUtils.doGet(requestUrl, key, token);
     }
 
 }

+ 1 - 1
src/main/java/cn/com/qmth/examcloud/app/service/NetExamService.java

@@ -96,7 +96,7 @@ public class NetExamService {
 
     public Result getExamRecordPaperStructList(String key, String token, String examRecordId) throws Exception {
         //封装请求参数
-        final String requestUrl = String.format("%s/api/exam_control/start?examRecordId=%s", propertyService.getNetExamUrl(), examRecordId);
+        final String requestUrl = String.format("%s/api/exam_question/paper_struct?exam_record_id=%s", propertyService.getNetExamUrl(), examRecordId);
         return HttpUtils.doGet(requestUrl, key, token);
     }