whyclxw
2025-05-28 e16302f9d475c7cc4dd18c5abf1a23cb5502e362
src/main/java/com/whyc/webSocket/StationStatisticsSocket.java
@@ -31,12 +31,12 @@
    }
    @OnOpen
    public void onOpen(Session session){
    public void onOpen(Session session,EndpointConfig config){
        this.session = session;
        /*HttpSession httpSession = (HttpSession) config.getUserProperties().get("httpSession");
        HttpSession httpSession = (HttpSession) config.getUserProperties().get("httpSession");
        UserInf user = (UserInf) httpSession.getAttribute("user");
        final int userId = user.getUId().intValue();*/
        final int userId = 1001;
        final int userId = user.getUId().intValue();
        /*final int userId = 1001;*/
        Thread thread = new Thread() {
            @Override
            public void run() {