From bd46c57c77c276014db3192a4e2cc96e23c93202 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期五, 21 二月 2020 13:08:47 +0800 Subject: [PATCH] 先上传个版本吧 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlBackupLogic.cs | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlBackupLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlBackupLogic.cs index d986516..2bc0020 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlBackupLogic.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlBackupLogic.cs @@ -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