he2802 3 jaren geleden
bovenliggende
commit
d3d5591fc1

+ 5 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/socket/service/WebSocketServer.java

@@ -128,6 +128,11 @@ public class WebSocketServer {
             if (message.equals("doCourse")) { //课程继续教育限制多开
                 doQuestion(tag,"doCourse");
             }
+            if (message.equals("delAction")) {
+                if(actionPools.containsKey(tag)){
+                    actionPools.remove(tag);
+                }
+            }
         }
    //     message = "客户端:" + message + ",已收到";
    //    System.out.println(message+System.currentTimeMillis()/1000+namePools.get(session.getId()));