wangliang 4 年之前
父節點
當前提交
2f5e882410
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      themis-exam/src/main/java/com/qmth/themis/exam/websocket/WebSocketOeServer.java

+ 3 - 1
themis-exam/src/main/java/com/qmth/themis/exam/websocket/WebSocketOeServer.java

@@ -143,9 +143,11 @@ public class WebSocketOeServer implements Concurrently {
                     //发送延时mq消息end
                     //发送延时mq消息end
                 } else {
                 } else {
                     log.info("正常退出");
                     log.info("正常退出");
-                    ExamConstant.sendExamStopMsg(this.recordId, true, true);
+                    ExamConstant.sendExamStopMsg(this.recordId, true, false);
                     tOeExamRecordService.examBreakLogic(this.recordId, true);
                     tOeExamRecordService.examBreakLogic(this.recordId, true);
                 }
                 }
+            } else if (Objects.equals(status, ExamRecordStatusEnum.FIRST_PREPARE) || Objects.equals(status, ExamRecordStatusEnum.RESUME_PREPARE)) {
+                ExamConstant.sendExamStopMsg(this.recordId, true, true);
             }
             }
         }
         }
         log.info("用户退出:{},当前在线人数为:{},updateTime:{}", this.websocketSessionId, getOnlineCount(), this.updateTime);
         log.info("用户退出:{},当前在线人数为:{},updateTime:{}", this.websocketSessionId, getOnlineCount(), this.updateTime);