liurunyu
2025-03-03 584989385e05b8ad887431da2ab7da1e93e1ffaa
pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/msCenter/CenterMsReceiveCtrl.java
@@ -28,7 +28,8 @@
 */
@Slf4j
@Tag(name = "通信中间消息中心推送消息接收方", description = "通信中间消息中心推送消息接收方")
@Hidden //不公开接口,其只有通信中间件调用
@Tag(name = "通信中间件消息中心推送消息接收者", description = "通信中间件消息中心推送消息接收者")
@RestController
@RequestMapping(path="msCenter")
public class CenterMsReceiveCtrl{
@@ -37,9 +38,9 @@
    private CenterMsReceiveSv sv ;
    /**
     * 通信中间消息中心推送消息接收
     * @param list 消息集合
     * @return 操作结果
     * 通信中间件消息中心推送消息接收
     * @param list 消息数据集合
     * @return 无返回结果
     */
    @Hidden //不公开接口,其只有通信中间件调用
    @PostMapping(path = "receive", consumes = MediaType.APPLICATION_JSON_VALUE)
@@ -74,7 +75,7 @@
    }
    /**
     * 推送消息
     * 通过websocket把消息推送出去,当前接收方是前端的大屏展示模块
     * @param list
     */
    private void sendByWebSocket(List<JSONObject> list){
@@ -82,7 +83,7 @@
        vo.type = WebSocketMessage.TYPE_JSON ;
        vo.content = list ;
        try {
            WebSocketServer.sendAllMessage(JSON.toJSONString(vo));
            WebSocketServer.sendMessage2AllClient(JSON.toJSONString(vo));
        }catch (Exception e){
            log.error("推送消息失败", e) ;
        }