sessoin关闭问题

This commit is contained in:
2024-05-31 17:39:39 +08:00
parent 6ecb41cbe9
commit a375fb10a8

View File

@@ -173,7 +173,6 @@ public class AppWebSocketServer {
// userMap.remove(tableId + "-" + shopId);
// }
}
session.close();
}
/**
@@ -241,8 +240,6 @@ public class AppWebSocketServer {
jsonObject1.put("data", new ArrayList<>());
jsonObject1.put("amount", num);
sendMessage(jsonObject1);
}else if("close".equals(jsonObject.getString("type"))){
onClose();
}else {
rabbitProducer.putCart(jsonObject.toJSONString());
}