From 6fa9d69da922c8049f5acfcbb9ce9fd26811024c Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期四, 16 四月 2020 17:10:57 +0800 Subject: [PATCH] 请合并代码 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlBackupLogic.cs | 38 +++++++++++++++++++++++++------------- 1 files changed, 25 insertions(+), 13 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlBackupLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlBackupLogic.cs index d986516..7a1f143 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlBackupLogic.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlBackupLogic.cs @@ -95,7 +95,7 @@ { //涓嶅厑璁告寜绯荤粺鐨勮繑鍥為敭 Shared.Common.CommonPage.BackKeyCanClick = false; - UserCenterResourse.Option.AppCanSignout = false; + UserCenterResourse.AccountOption.AppCanSignout = false; //棣栧厛鍏堝垱寤轰竴涓复鏃舵枃浠跺す,瀛樺湪鏂囦欢鍒欐竻绌� string newDir = System.IO.Path.Combine(DirNameResourse.LocalMemoryDirectory, DirNameResourse.DownLoadBackupTempDirectory); @@ -109,7 +109,7 @@ ProgressFormBar.Current.Close(); //鍏佽鎸夌郴缁熺殑杩斿洖閿� Shared.Common.CommonPage.BackKeyCanClick = true; - UserCenterResourse.Option.AppCanSignout = true; + UserCenterResourse.AccountOption.AppCanSignout = true; return null; } @@ -132,7 +132,7 @@ ProgressFormBar.Current.Close(); //鍏佽鎸夌郴缁熺殑杩斿洖閿� Shared.Common.CommonPage.BackKeyCanClick = true; - UserCenterResourse.Option.AppCanSignout = true; + UserCenterResourse.AccountOption.AppCanSignout = true; return null; } @@ -145,7 +145,7 @@ ProgressFormBar.Current.Close(); //鍏佽鎸夌郴缁熺殑杩斿洖閿� Shared.Common.CommonPage.BackKeyCanClick = true; - UserCenterResourse.Option.AppCanSignout = true; + UserCenterResourse.AccountOption.AppCanSignout = true; return null; } //灏嗚緭鍏ュ啓鍏ユ湰鍦扮殑涓存椂鏂囦欢澶� @@ -157,7 +157,7 @@ ProgressFormBar.Current.Close(); //鍏佽鎸夌郴缁熺殑杩斿洖閿� Shared.Common.CommonPage.BackKeyCanClick = true; - UserCenterResourse.Option.AppCanSignout = true; + UserCenterResourse.AccountOption.AppCanSignout = true; return newDir; } @@ -287,7 +287,7 @@ //涓嶅厑璁告寜绯荤粺鐨勮繑鍥為敭 Shared.Common.CommonPage.BackKeyCanClick = false; - UserCenterResourse.Option.AppCanSignout = false; + UserCenterResourse.AccountOption.AppCanSignout = false; //浣犺涓轰粈涔堣繖閲屼笉鍒嗕竴涓嚱鏁板嚭鏉ワ紙鐞嗚涓婃槸鍒嗗嚱鏁板嚭鏉ョ殑锛� //鏄洜涓哄鏋滃垎鍑芥暟鐨勮瘽锛屼細鍑虹幇鍙岄噸寮傛锛屽鑷翠富绾跨▼鐨勮繘搴︽潯鐨勭櫨鍒嗘瘮姘歌繙瀹氭0% @@ -301,7 +301,7 @@ ProgressFormBar.Current.Close(); //鍏佽鎸夌郴缁熺殑杩斿洖閿� Shared.Common.CommonPage.BackKeyCanClick = true; - UserCenterResourse.Option.AppCanSignout = true; + UserCenterResourse.AccountOption.AppCanSignout = true; return false; } //鍒ゆ柇鏄惁鏄簲璇ヤ笂浼犵殑鏂囦欢 @@ -326,7 +326,7 @@ ProgressFormBar.Current.Close(); //鍏佽鎸夌郴缁熺殑杩斿洖閿� Shared.Common.CommonPage.BackKeyCanClick = true; - UserCenterResourse.Option.AppCanSignout = true; + UserCenterResourse.AccountOption.AppCanSignout = true; return false; } //璁剧疆杩涘害鍊� @@ -343,7 +343,7 @@ ProgressFormBar.Current.Close(); //鍏佽鎸夌郴缁熺殑杩斿洖閿� Shared.Common.CommonPage.BackKeyCanClick = true; - UserCenterResourse.Option.AppCanSignout = true; + UserCenterResourse.AccountOption.AppCanSignout = true; return false; } @@ -358,7 +358,7 @@ ProgressFormBar.Current.Close(); //鍏佽鎸夌郴缁熺殑杩斿洖閿� Shared.Common.CommonPage.BackKeyCanClick = true; - UserCenterResourse.Option.AppCanSignout = true; + UserCenterResourse.AccountOption.AppCanSignout = true; return false; } //璁剧疆杩涘害鍊� @@ -369,7 +369,7 @@ ProgressFormBar.Current.Close(); //鍏佽鎸夌郴缁熺殑杩斿洖閿� Shared.Common.CommonPage.BackKeyCanClick = true; - UserCenterResourse.Option.AppCanSignout = true; + UserCenterResourse.AccountOption.AppCanSignout = true; return true; } @@ -418,7 +418,7 @@ nvc.Add("HomeId", Shared.Common.Config.Instance.Home.Id); nvc.Add("BackupClassId", BackupClassId); nvc.Add("ManualBackupType", ManualBackupType.ToString()); - nvc.Add("IsOtherAccountCtrl", Common.Config.Instance.isAdministrator.ToString()); + nvc.Add("IsOtherAccountCtrl", Common.Config.Instance.Home.IsOthreShare.ToString()); string base64 = GetBase64Text(fullName); nvc.Add("UploadSubFileLists[0].BackupFileName", fileName); @@ -446,7 +446,7 @@ string contentType = "application/octet-stream"; string requestUrl = string.Empty; //鍚敤绠$悊鍛樻潈闄� - if (Config.Instance.isAdministrator == true) + if (Config.Instance.Home.IsOthreShare == true) { requestUrl = $"{Config.Instance.AdminRequestBaseUrl}/{RequestName}"; } @@ -649,6 +649,12 @@ IMessageCommon.Current.IgnoreError = false; return false; } + if (listFile.Count == 0) + { + //鎭㈠ + IMessageCommon.Current.IgnoreError = false; + return true; + } //妫�娴� string checkKeys = UserCenterLogic.EncryptPassword(UserCenterResourse.FileEncryptKey, DirNameResourse.ShowOptionMenuFile + UserCenterResourse.UserInfo.Account); @@ -663,6 +669,12 @@ //鍑哄姏璇︾粏Log(Debug鐢�) UserCenterResourse.HideOption.DetailedLog = 1; } + checkKeys = UserCenterLogic.EncryptPassword(UserCenterResourse.FileEncryptKey, DirNameResourse.DeviceHistoryFile + UserCenterResourse.UserInfo.Account); + if (listFile.Contains(checkKeys) == true) + { + //鏄剧ず璁惧鍘嗗彶鐗堟湰(Debug鐢�) + UserCenterResourse.HideOption.DeviceHistory = 1; + } //鎭㈠ IMessageCommon.Current.IgnoreError = false; -- Gitblit v1.8.0