From 9d61367c1fd278f58f721d4c0e69999f89e4485d Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期四, 12 十二月 2019 14:14:30 +0800
Subject: [PATCH] 添加最新绑定机制
---
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceBindLogic.cs | 104 ++++++++++++++++++++++++++--------------------------
1 files changed, 52 insertions(+), 52 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceBindLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceBindLogic.cs
old mode 100755
new mode 100644
index c2f7d13..31aca50
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceBindLogic.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceBindLogic.cs
@@ -123,60 +123,60 @@
{
string mainkeys = Common.LocalDevice.Current.GetDeviceMainKeys(data.BindMacAddr, data.BindEpoint);
//0:娣诲姞鎴愬姛 3:宸茬粡瀛樺湪锛屼篃鍙互浠h〃鎴愬姛
- if (data.Result == 0 || data.Result == 3)
- {
- if (dicDevice.ContainsKey(mainkeys) == true)
- {
- listSuccess.Add(dicDevice[mainkeys]);
- }
- }
+ //if (data.Result == 0 || data.Result == 3)
+ //{
+ // if (dicDevice.ContainsKey(mainkeys) == true)
+ // {
+ // listSuccess.Add(dicDevice[mainkeys]);
+ // }
+ //}
//1锛氬け璐ワ紝鑺傜偣璁惧鎴栧満鏅笉瀛樺湪
- else if (data.Result == 1)
- {
- if (dicDevice.ContainsKey(mainkeys) == true)
- {
- //璁惧鍚嶇О 缁戝畾澶辫触
- string msg = Common.LocalDevice.Current.GetDeviceEpointName(dicDevice[mainkeys]) + "\r\n";
- msg += Language.StringByID(R.MyInternationalizationString.BindFailed);
- this.ShowTipMsg(msg);
- }
- }
+ //else if (data.Result == 1)
+ //{
+ // if (dicDevice.ContainsKey(mainkeys) == true)
+ // {
+ // //璁惧鍚嶇О 缁戝畾澶辫触
+ // string msg = Common.LocalDevice.Current.GetDeviceEpointName(dicDevice[mainkeys]) + "\r\n";
+ // msg += Language.StringByID(R.MyInternationalizationString.BindFailed);
+ // this.ShowTipMsg(msg);
+ // }
+ //}
//2锛氭湭鐭ワ紝鐢辫妭鐐硅澶囧弽棣堝彂閫佲�淏ind/BindResult鈥濅富棰樻秷鎭‘瀹氭槸鍚︽垚鍔�
- else if (data.Result == 2)
- {
- if (result.addBindResultResponseData == null)
- {
- //璁惧鍚嶇О 缁戝畾澶辫触
- string msg = Common.LocalDevice.Current.GetDeviceEpointName(dicDevice[mainkeys]) + "\r\n";
- msg += Language.StringByID(R.MyInternationalizationString.BindFailed);
- this.ShowTipMsg(msg);
- }
- else
- {
- //娣诲姞鎴愬姛
- if (result.addBindResultResponseData.Result == 0)
- {
- if (dicDevice.ContainsKey(mainkeys) == true)
- {
- listSuccess.Add(dicDevice[mainkeys]);
- }
- }
- //璁惧鍚嶇О 缁戝畾鍒楄〃宸叉弧
- else if (result.addBindResultResponseData.Result == 140)
- {
- string msg = Common.LocalDevice.Current.GetDeviceEpointName(dicDevice[mainkeys]) + "\r\n";
- msg += Language.StringByID(R.MyInternationalizationString.uBindListIsFull);
- this.ShowTipMsg(msg);
- }
- else
- {
- //璁惧鍚嶇О 缁戝畾澶辫触
- string msg = Common.LocalDevice.Current.GetDeviceEpointName(dicDevice[mainkeys]) + "\r\n";
- msg += Language.StringByID(R.MyInternationalizationString.BindFailed);
- this.ShowTipMsg(msg);
- }
- }
- }
+ //else if (data.Result == 2)
+ //{
+ // if (result.addBindResultResponseData == null)
+ // {
+ // //璁惧鍚嶇О 缁戝畾澶辫触
+ // string msg = Common.LocalDevice.Current.GetDeviceEpointName(dicDevice[mainkeys]) + "\r\n";
+ // msg += Language.StringByID(R.MyInternationalizationString.BindFailed);
+ // this.ShowTipMsg(msg);
+ // }
+ // else
+ // {
+ // //娣诲姞鎴愬姛
+ // if (result.addBindResultResponseData.Result == 0)
+ // {
+ // if (dicDevice.ContainsKey(mainkeys) == true)
+ // {
+ // listSuccess.Add(dicDevice[mainkeys]);
+ // }
+ // }
+ // //璁惧鍚嶇О 缁戝畾鍒楄〃宸叉弧
+ // else if (result.addBindResultResponseData.Result == 140)
+ // {
+ // string msg = Common.LocalDevice.Current.GetDeviceEpointName(dicDevice[mainkeys]) + "\r\n";
+ // msg += Language.StringByID(R.MyInternationalizationString.uBindListIsFull);
+ // this.ShowTipMsg(msg);
+ // }
+ // else
+ // {
+ // //璁惧鍚嶇О 缁戝畾澶辫触
+ // string msg = Common.LocalDevice.Current.GetDeviceEpointName(dicDevice[mainkeys]) + "\r\n";
+ // msg += Language.StringByID(R.MyInternationalizationString.BindFailed);
+ // this.ShowTipMsg(msg);
+ // }
+ // }
+ //}
}
return listSuccess;
--
Gitblit v1.8.0