Bladeren bron

监考端接口

wangliang 4 jaren geleden
bovenliggende
commit
124dfc5c1b

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

@@ -172,7 +172,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"), "")) {
-            tIeExamInvigilateCallLog.setType((ExceptionEnum) mapParameter.get("type"));
+            tIeExamInvigilateCallLog.setType(ExceptionEnum.valueOf(String.valueOf(mapParameter.get("type"))));
         }
         redisUtil.setForHash(RedisKeyHelper.examRecordCacheKey(recordId), objectMap);