From 5d41c91e5bbf38ea09b1f3fd4d4a49e23624a95c Mon Sep 17 00:00:00 2001
From: whycxzp <perryhsu@163.com>
Date: 星期四, 02 三月 2023 11:34:29 +0800
Subject: [PATCH] 更新

---
 src/main/java/com/whyc/webSocket/ScreenSocket.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/whyc/webSocket/ScreenSocket.java b/src/main/java/com/whyc/webSocket/ScreenSocket.java
index 644f177..289d213 100644
--- a/src/main/java/com/whyc/webSocket/ScreenSocket.java
+++ b/src/main/java/com/whyc/webSocket/ScreenSocket.java
@@ -65,10 +65,10 @@
     @OnOpen
     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() {

--
Gitblit v1.9.1