From 488efb508eb0648773fe7b68e810e04bcd7ca075 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期五, 11 十二月 2020 15:58:15 +0800 Subject: [PATCH] 20201211 --- HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockGesturePage.cs | 62 +++++++++++++++--------------- 1 files changed, 31 insertions(+), 31 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockGesturePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockGesturePage.cs index 0ed1e8d..af371d7 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockGesturePage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockGesturePage.cs @@ -149,11 +149,11 @@ this.RemoveFromParent(); return; } - if (OnAppConfig.Instance.appUnlockType.Contains("2")) + if (UserInfo.Current.appUnlockType.Contains("2")) { - OnAppConfig.Instance.appUnlockType = new System.Collections.Generic.List<string>(); - OnAppConfig.Instance.appUnlockPasswrod = ""; - OnAppConfig.Instance.SaveUserConfig(); + UserInfo.Current.appUnlockType = new System.Collections.Generic.List<string>(); + UserInfo.Current.appUnlockPasswrod = ""; + UserInfo.Current.SaveUserInfo(); this.RemoveFromParent(); backAction(); } @@ -170,36 +170,36 @@ { if (passwrod == oldPasswrod) { - if (optionType == "5" )//&& OnAppConfig.Instance.appUnlockType.Contains("3")) + if (optionType == "5" )//&& UserInfo.Current.appUnlockType.Contains("3")) { - if (OnAppConfig.Instance.appUnlockType.Contains("3")) - OnAppConfig.Instance.appUnlockType.Remove("3"); + if (UserInfo.Current.appUnlockType.Contains("3")) + UserInfo.Current.appUnlockType.Remove("3"); else - OnAppConfig.Instance.appUnlockType.Add("3"); + UserInfo.Current.appUnlockType.Add("3"); - OnAppConfig.Instance.SaveUserConfig(); + UserInfo.Current.SaveUserInfo(); this.RemoveFromParent(); } if ( optionType == "6") { - if (OnAppConfig.Instance.appUnlockType.Contains("4")) - OnAppConfig.Instance.appUnlockType.Remove("4"); + if (UserInfo.Current.appUnlockType.Contains("4")) + UserInfo.Current.appUnlockType.Remove("4"); else - OnAppConfig.Instance.appUnlockType.Add("4"); + UserInfo.Current.appUnlockType.Add("4"); - OnAppConfig.Instance.SaveUserConfig(); + UserInfo.Current.SaveUserInfo(); this.RemoveFromParent(); } - if (optionType == "8" && !OnAppConfig.Instance.appUnlockType.Contains("3")) + if (optionType == "8" && !UserInfo.Current.appUnlockType.Contains("3")) { - OnAppConfig.Instance.appUnlockType.Add("3"); - OnAppConfig.Instance.SaveUserConfig(); + UserInfo.Current.appUnlockType.Add("3"); + UserInfo.Current.SaveUserInfo(); this.RemoveFromParent(); } - if (!OnAppConfig.Instance.appUnlockType.Contains("4") && optionType == "9") + if (!UserInfo.Current.appUnlockType.Contains("4") && optionType == "9") { - OnAppConfig.Instance.appUnlockType.Remove("4"); - OnAppConfig.Instance.SaveUserConfig(); + UserInfo.Current.appUnlockType.Remove("4"); + UserInfo.Current.SaveUserInfo(); this.RemoveFromParent(); } backAction(); @@ -228,29 +228,29 @@ var unlockType = TouchIDUtils.getTouchIDSupperType() == TouchIDUtils.TouchIDSupperType.TouchID ? "3" : "4"; if (result) { - if (!OnAppConfig.Instance.appUnlockType.Contains(unlockType)) + if (!UserInfo.Current.appUnlockType.Contains(unlockType)) { - OnAppConfig.Instance.appUnlockType.Add(unlockType); + UserInfo.Current.appUnlockType.Add(unlockType); } } else { - if (OnAppConfig.Instance.appUnlockType.Contains(unlockType)) + if (UserInfo.Current.appUnlockType.Contains(unlockType)) { - OnAppConfig.Instance.appUnlockType.Remove(unlockType); + UserInfo.Current.appUnlockType.Remove(unlockType); } } - OnAppConfig.Instance.SaveUserConfig(); + UserInfo.Current.SaveUserInfo(); backAction(); }; page.AdditionalOperations(tipMsg, action); } - if (!OnAppConfig.Instance.appUnlockType.Contains("2")) + if (!UserInfo.Current.appUnlockType.Contains("2")) { - OnAppConfig.Instance.appUnlockType.Add("2"); + UserInfo.Current.appUnlockType.Add("2"); } - OnAppConfig.Instance.appUnlockPasswrod = passwrod; - OnAppConfig.Instance.SaveUserConfig(); + UserInfo.Current.appUnlockPasswrod = passwrod; + UserInfo.Current.SaveUserInfo(); backAction(); } else @@ -287,9 +287,9 @@ var resultObj = new HttpServerRequest().LoginByPassword( UserInfo.Current.AccountString, pw); if (resultObj.Code == StateCode.SUCCESS) { - OnAppConfig.Instance.appUnlockPasswrod = ""; - OnAppConfig.Instance.appUnlockType = new System.Collections.Generic.List<string>(); - OnAppConfig.Instance.SaveUserConfig(); + UserInfo.Current.appUnlockPasswrod = ""; + UserInfo.Current.appUnlockType = new System.Collections.Generic.List<string>(); + UserInfo.Current.SaveUserInfo(); this.RemoveFromParent(); backAction(); } -- Gitblit v1.8.0