Browse Source

冻结时间校验

xiatian 1 year ago
parent
commit
5627b4a3da

+ 6 - 0
src/main/java/cn/com/qmth/examcloud/app/controller/ExamProcessController.java

@@ -39,6 +39,12 @@ public class ExamProcessController {
 
     @Autowired
     private CoreQuestionService questionService;
+    
+    @ApiOperation(value = "校验交卷冻结时间")
+    @RequestMapping(value = "/exam/record/check/time", method = {RequestMethod.POST})
+    public Result examRecordCheckTime(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token) throws Exception {
+        return oeService.checkTime(key, token);
+    }
 
     @ApiOperation(value = "获取某考生的“考试批次”列表接口")
     @RequestMapping(value = "/exam/practice/list", method = {RequestMethod.POST})

+ 2 - 0
src/main/java/cn/com/qmth/examcloud/app/service/CoreOeService.java

@@ -322,4 +322,6 @@ public interface CoreOeService {
     Result uploadPaperAnswerBatch(String key, String token, Long examRecordDataId, MultipartFile[] fileArray,
                                   String fileType, String[] fileMd5Array) throws Exception;
 
+	Result checkTime(String key, String token) throws Exception;
+
 }

+ 7 - 0
src/main/java/cn/com/qmth/examcloud/app/service/impl/CoreOeServiceImpl.java

@@ -114,6 +114,13 @@ public class CoreOeServiceImpl implements CoreOeService {
         final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/examHeartbeat", sysProperty.getApiDomain());
         return HttpUtils.doGet(requestUrl, key, token);
     }
+    
+    @Override
+    public Result checkTime(String key, String token) throws Exception {
+        //封装请求参数
+        final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/check/time", sysProperty.getApiDomain());
+        return HttpUtils.doGet(requestUrl, key, token);
+    }
 
     @Override
     public Result startPracticeExamRecord(String key, String token, String examStudentId) throws Exception {