Quellcode durchsuchen

监考端接口

wangliang vor 4 Jahren
Ursprung
Commit
01aff67b7f

+ 1 - 1
themis-exam/src/main/java/com/qmth/themis/exam/api/TIeInvigilateCallMobileController.java

@@ -171,7 +171,7 @@ public class TIeInvigilateCallMobileController {
         }
         objectMap.put(SystemConstant.MONITOR_STATUS_ + source.name(), status);
         TIeExamInvigilateCallLog tIeExamInvigilateCallLog = new TIeExamInvigilateCallLog(recordId, source, liveUrl, MonitorStatusSourceEnum.START);
-        if (Objects.nonNull(mapParameter.get("type")) || !Objects.equals(mapParameter.get("type"), "")) {
+        if (Objects.nonNull(mapParameter.get("type")) && !Objects.equals(mapParameter.get("type"), "")) {
             tIeExamInvigilateCallLog.setType(ExceptionEnum.valueOf(String.valueOf(mapParameter.get("type"))));
         }
         redisUtil.setForHash(RedisKeyHelper.examRecordCacheKey(recordId), objectMap);

+ 2 - 2
themis-exam/src/main/java/com/qmth/themis/exam/api/TIeInvigilateCallOeController.java

@@ -133,8 +133,8 @@ public class TIeInvigilateCallOeController {
         }
         objectMap.put(SystemConstant.MONITOR_STATUS_ + source.name(), status);
         TIeExamInvigilateCallLog tIeExamInvigilateCallLog = new TIeExamInvigilateCallLog(recordId, source, liveUrl, MonitorStatusSourceEnum.START);
-        if (Objects.nonNull(mapParameter.get("type")) || !Objects.equals(mapParameter.get("type"), "")) {
-            tIeExamInvigilateCallLog.setType((ExceptionEnum) mapParameter.get("type"));
+        if (Objects.nonNull(mapParameter.get("type")) && !Objects.equals(mapParameter.get("type"), "")) {
+            tIeExamInvigilateCallLog.setType(ExceptionEnum.valueOf(String.valueOf(mapParameter.get("type"))));
         }
         redisUtil.setForHash(RedisKeyHelper.examRecordCacheKey(recordId), objectMap);