From 581d7144d6cbfe2515b178de02ea811483943c3a Mon Sep 17 00:00:00 2001 From: Liang <545073804@qq.com> Date: 星期五, 15 三月 2024 10:32:43 +0800 Subject: [PATCH] update 优化 工作流抄送任务获取多次获取租户 update 优化 工作流获取当前任务参与者存在多个办理人认领逻辑 update 优化 工作流发送消息类型判断逻辑 --- ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/utils/WebSocketUtils.java | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/utils/WebSocketUtils.java b/ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/utils/WebSocketUtils.java index 5c45532..086599c 100644 --- a/ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/utils/WebSocketUtils.java +++ b/ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/utils/WebSocketUtils.java @@ -81,9 +81,6 @@ * @param message 娑堟伅鍐呭 */ public static void publishAll(String message) { - WebSocketSessionHolder.getSessionsAll().forEach(key -> { - WebSocketUtils.sendMessage(key, message); - }); WebSocketMessageDto broadcastMessage = new WebSocketMessageDto(); broadcastMessage.setMessage(message); RedisUtils.publish(WEB_SOCKET_TOPIC, broadcastMessage, consumer -> { @@ -101,7 +98,7 @@ private static void sendMessage(WebSocketSession session, WebSocketMessage<?> message) { if (session == null || !session.isOpen()) { - log.error("[send] session浼氳瘽宸茬粡鍏抽棴"); + log.warn("[send] session浼氳瘽宸茬粡鍏抽棴"); } else { try { session.sendMessage(message); -- Gitblit v1.9.3