From 42a2772d1aa7493bcc4fac3e24ee8eda4eebc23d Mon Sep 17 00:00:00 2001 From: xubinbin <1323875150@qq.com> Date: 星期二, 12 十二月 2023 17:09:04 +0800 Subject: [PATCH] bugfix:请求头带token, SecurityUtils 获取用户id 一直为0 #1195 --- src/main/java/com/genersoft/iot/vmp/service/bean/MessageForPushChannel.java | 32 +++++++++++++++++++++++++++++++- 1 files changed, 31 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/service/bean/MessageForPushChannel.java b/src/main/java/com/genersoft/iot/vmp/service/bean/MessageForPushChannel.java old mode 100644 new mode 100755 index 3ab1b80..1a9e3e5 --- a/src/main/java/com/genersoft/iot/vmp/service/bean/MessageForPushChannel.java +++ b/src/main/java/com/genersoft/iot/vmp/service/bean/MessageForPushChannel.java @@ -2,6 +2,7 @@ /** * 褰撲笂绾у钩鍙� + * @author lin */ public class MessageForPushChannel { /** @@ -26,9 +27,14 @@ private String gbId; /** - * 璇锋眰鐨勫钩鍙癐D + * 璇锋眰鐨勫钩鍙板浗鏍囩紪鍙� */ private String platFormId; + + /** + * 璇锋眰鐨勫钩鍙拌嚜澧濱D + */ + private int platFormIndex; /** * 璇锋眰骞冲彴鍚嶇О @@ -44,6 +50,22 @@ * 鐩爣娴佸獟浣撹妭鐐笽D */ private String mediaServerId; + + + + public static MessageForPushChannel getInstance(int type, String app, String stream, String gbId, + String platFormId, String platFormName, String serverId, + String mediaServerId){ + MessageForPushChannel messageForPushChannel = new MessageForPushChannel(); + messageForPushChannel.setType(type); + messageForPushChannel.setGbId(gbId); + messageForPushChannel.setApp(app); + messageForPushChannel.setStream(stream); + messageForPushChannel.setMediaServerId(mediaServerId); + messageForPushChannel.setPlatFormId(platFormId); + messageForPushChannel.setPlatFormName(platFormName); + return messageForPushChannel; + } public int getType() { @@ -109,4 +131,12 @@ public void setMediaServerId(String mediaServerId) { this.mediaServerId = mediaServerId; } + + public int getPlatFormIndex() { + return platFormIndex; + } + + public void setPlatFormIndex(int platFormIndex) { + this.platFormIndex = platFormIndex; + } } -- Gitblit v1.8.0