From a7adf98ff4ac801342853b1f9231cc1ab5acebf3 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期四, 14 十一月 2019 17:25:42 +0800 Subject: [PATCH] Merge branch 'dev-tzy' into DEV_GXC --- ZigbeeApp/Shared/Phone/ZigBee/Common/Config.cs | 22 +++++++++++++++++----- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/ZigBee/Common/Config.cs b/ZigbeeApp/Shared/Phone/ZigBee/Common/Config.cs index 11f8a3b..2844a62 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() { @@ -182,7 +194,7 @@ config = new Config { }; } } - + /// <summary> /// 褰撳墠鐧诲綍鐨勫笎鍙� /// </summary> -- Gitblit v1.8.0