From 8ce0f9b1e568dd9125e74421cd02fbc29381c1f1 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期三, 29 七月 2020 12:53:33 +0800 Subject: [PATCH] 新版本 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs | 28 ++++++++++++++++++++-------- 1 files changed, 20 insertions(+), 8 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs index 2f61f5d..33a1934 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs @@ -29,12 +29,12 @@ var connectMode = GetHttpConnectMode(checkAuthority); //鑾峰彇浠庢帴鍙i偅閲屽彇鍒扮殑姣旂壒鏁版嵁 var byteData = GettByteResponsePack(RequestName, connectMode, obj); - if (byteData == null && setAgain == true) + if (byteData == null) { if (setAgain == false) { //褰撳墠鏃犳硶璁块棶缃戠粶 - ShowNotNetMsg(listNotShowError); + ShowNotNetMsg(RequestName, listNotShowError); return false; } byteData = ResetByteRequestHttps(RequestName, checkAuthority, obj); @@ -69,7 +69,7 @@ if (setAgain == false) { //褰撳墠鏃犳硶璁块棶缃戠粶 - ShowNotNetMsg(listNotShowError); + ShowNotNetMsg(RequestName, listNotShowError); return "Error"; } byteData = ResetByteRequestHttps(RequestName, checkAuthority, obj); @@ -107,7 +107,7 @@ if (setAgain == false) { //褰撳墠鏃犳硶璁块棶缃戠粶 - ShowNotNetMsg(listNotShowError); + ShowNotNetMsg(RequestName, listNotShowError); return null; } byteData = ResetByteRequestHttps(RequestName, checkAuthority, obj); @@ -151,7 +151,7 @@ if (setAgain == false) { //褰撳墠鏃犳硶璁块棶缃戠粶 - ShowNotNetMsg(listNotShowError); + ShowNotNetMsg(RequestName, listNotShowError); return null; } revertObj = ResetByteRequestHttps(RequestName, checkAuthority, obj); @@ -206,7 +206,7 @@ if (count == 3) { //鏄剧ず娌℃湁缃戠粶鐨凪sg - ShowNotNetMsg(null); + ShowNotNetMsg(RequestName, null); break; } } @@ -328,13 +328,15 @@ /// <summary> /// 鏄剧ず娌℃湁缃戠粶鐨凪sg /// </summary> - private static void ShowNotNetMsg(List<string> listNotShowError) + private static void ShowNotNetMsg(string RequestName, List<string> listNotShowError) { if (listNotShowError != null && listNotShowError.Contains("NotCheck") == true) { //涓嶆娴� return; } + //HdlLogLogic.Current.WriteLog(-1, "褰撳墠鏃犵綉缁滆繛鎺�:" + RequestName); + HdlThreadLogic.Current.RunMain(() => { // 褰撳墠鏃犵綉缁滆繛鎺�,璇风‘璁ょ綉缁� @@ -498,13 +500,18 @@ #endregion #region 鈻� 鍒锋柊鏈湴缂撳瓨_______________________ + /// <summary> - /// 鍒锋柊鏈湴鎵�鏈夌紦瀛� + /// 鍒锋柊鏈湴鎵�鏈夌紦瀛�(鐩墠姝ゆ柟娉曞彧鎻愪緵缁欐仮澶嶅浠芥暟鎹娇鐢�) /// </summary> public static void RefreshAllMemory() { //鍒锋柊浣忓畢瀵硅薄 RefreshHomeObject(); + //鏍规嵁妯℃澘鏂囦欢,鎭㈠鏁版嵁 + TemplateData.TemplateCommonLogic.Current.RecoverDataByTemplateBinFile(); + //寮哄埗鐢熸垚璁惧鍜岀綉鍏虫枃浠� + TemplateData.TemplateCommonLogic.Current.CreatDeviceAndGatewayFileFromMemoryByForce(); //鍒锋柊鏈湴缃戝叧鏂囦欢 HdlGatewayLogic.Current.ReFreshByLocal(); //鍒锋柊鏈湴璁惧 @@ -847,6 +854,9 @@ //鍒锋柊APP鍓嶄竴娆¢�夋嫨鐨勭綉鍏矷D(鍙互鍙嶅璋冪敤,闇�瑕佸湪缃戝叧鍒濆鍖栧畬浜嗕箣鍚庢墠鑳借皟鐢�) HdlGatewayLogic.Current.RefreshAppOldSelectGatewayId(); + //鍔犺浇妯℃澘缂撳瓨 + //TemplateData.TemplateCommonLogic.Current.LoadLocalTemplateMemoryData(); + //0:宸茬粡鍚屾杩囷紝涓嶉渶瑕佸悓姝�,杩欎釜鏃跺�欓渶瑕佹彁绀哄浠� if (result == 0 && ShowPrompted == true) { @@ -912,6 +922,8 @@ HdlRoomLogic.Current.RefreshAllRoomByLocation(); //鍒锋柊宸﹁竟鍒锋柊鎴块棿瑙嗗浘鍒楄〃 HdlRoomLogic.Current.RefreshRoomListView(); + //鍔犺浇妯℃澘缂撳瓨 + //TemplateData.TemplateCommonLogic.Current.LoadLocalTemplateMemoryData(); } /// <summary> -- Gitblit v1.8.0