Browse Source

去掉移动端监控状态更新接口对于websocket的依赖判断

wangliang 4 years ago
parent
commit
aa3955bae6

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

@@ -165,11 +165,7 @@ public class TIeInvigilateCallMobileController {
         if (Objects.equals(status, MonitorStatusSourceEnum.STOP.name()) && (Objects.isNull(mapParameter.get("type")) || Objects.equals(mapParameter.get("type"), ""))) {
             throw new BusinessException("异常类型不能为空");
         }
-        ConcurrentHashMap<String, WebSocketMobileServer> mobileWebSocketMap = WebSocketMobileServer.getWebSocketMap();
         String clientWebsocketId = ExamRecordCacheUtil.getClientWebsocketId(recordId);
-        if (Objects.isNull(mobileWebSocketMap.get(clientWebsocketId + "-" + source.name()))) {
-            throw new BusinessException("网络连接失败");
-        }
         //获取考试记录缓存
         String liveUrl = null;
         if (Objects.nonNull(ExamRecordCacheUtil.getMonitorLiveUrl(recordId, source))) {