wangliang %!s(int64=4) %!d(string=hai) anos
pai
achega
2f5e882410

+ 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
                 } else {
                     log.info("正常退出");
-                    ExamConstant.sendExamStopMsg(this.recordId, true, true);
+                    ExamConstant.sendExamStopMsg(this.recordId, true, false);
                     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);