whycxzp
2025-02-28 6fd42f3fc2c33196e068f23b6f8584d1815702df
苏州地铁大屏提交
1个文件已修改
6 ■■■■ 已修改文件
src/main/java/com/whyc/webSocket/ScreenForSZSocket.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/webSocket/ScreenForSZSocket.java
@@ -104,9 +104,9 @@
    public void onOpen(Session session, EndpointConfig config){
        this.session = session;
        HttpSession httpSession = (HttpSession) config.getUserProperties().get("httpSession");
        //UserInf user = (UserInf) httpSession.getAttribute("user");
        //final int userId = user.getUId().intValue();
        final int userId = 1001;
        UserInf user = (UserInf) httpSession.getAttribute("user");
        final int userId = user.getUId().intValue();
        //final int userId = 1001;
        Thread thread = new Thread() {
            @Override
            public void run() {