From d569f44a62fa915d4f01a80c21e617f676b6c5ea Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期五, 18 十月 2019 10:12:10 +0800 Subject: [PATCH] 2019.10.18 --- ZigbeeApp/Shared/Phone/ZigBee/Common/Config.cs | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/ZigBee/Common/Config.cs b/ZigbeeApp/Shared/Phone/ZigBee/Common/Config.cs index 11f8a3b..7354850 100755 --- a/ZigbeeApp/Shared/Phone/ZigBee/Common/Config.cs +++ b/ZigbeeApp/Shared/Phone/ZigBee/Common/Config.cs @@ -98,6 +98,21 @@ return Config.Instance.Account; } } + /// <summary> + /// 褰撳墠闇�瑕佽繛鎺ヤ簯绔痁igbeeMqttBroker鐨勮繛鎺ョ殑瀵嗙爜 + /// </summary> + public string ConnectGuid + { + get + { + if (Phone.UserCenter.UserCenterResourse.UserInfo.AuthorityNo == 2 + || Phone.UserCenter.UserCenterResourse.UserInfo.AuthorityNo == 3) + { + return AdminConnectZigbeeMqttBrokerName; + } + return Config.Instance.Guid; + } + } /// <summary> /// 璐︽埛鐧诲綍鎴愬姛鐨凪qttKey @@ -167,10 +182,7 @@ /// 璐︽埛鐧诲綍鎴愬姛鐨勪富ID /// </summary> public int MasterID = 0; - /// <summary> - /// 鐢ㄦ埛ID - /// </summary> - public int UserID = 0; + public static void ReFresh() { -- Gitblit v1.8.0