From 9ba987e9232b71cefbb800114dd09985d7fef888 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 21 八月 2025 10:59:58 +0800
Subject: [PATCH] 修改bug

---
 pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/largeScreen/WebSocketServer.java |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/largeScreen/WebSocketServer.java b/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/largeScreen/WebSocketServer.java
index 03b1c12..53fe54c 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/largeScreen/WebSocketServer.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/largeScreen/WebSocketServer.java
@@ -2,6 +2,7 @@
 
 import com.dy.common.aop.SsoCheck;
 import com.dy.common.aop.SsoVo;
+import com.dy.common.springUtil.SpringContextUtil;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.context.annotation.Scope;
@@ -65,6 +66,10 @@
                 webSocketMap.put(token, this);
                 WebSocketServer.addOnlineCount();
             }
+            if(this.ssoCheck == null){
+                //2025-07-22 涓嶇煡涓轰粈涔堬紝this.ssoCheck浼氫负null
+                this.ssoCheck = SpringContextUtil.getBean(SsoCheck.class);
+            }
             Object rObj = this.ssoCheck.check(token);
             if(rObj != null) {
                 if (rObj instanceof SsoVo ssoVo) {
@@ -104,7 +109,7 @@
      */
     @OnError
     public void onError(Session session, Throwable error) {
-        log.error("瀹㈡埛绔�:" + this.token + "锛寃ebsocket浼氳瘽寮傚父锛屽師鍥�:" + error.getMessage());
+        //log.error("瀹㈡埛绔�:" + this.token + "锛寃ebsocket浼氳瘽寮傚父锛屽師鍥�:" + error.getMessage());
     }
 
     /**

--
Gitblit v1.8.0