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/AppUnlockPasswordPage.cs |   56 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockPasswordPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockPasswordPage.cs
index 6d8625f..495f3fd 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockPasswordPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockPasswordPage.cs
@@ -229,11 +229,11 @@
                                         this.RemoveFromParent();
                                         return;
                                     }
-                                    if (OnAppConfig.Instance.appUnlockType.Contains("1"))
+                                    if (UserInfo.Current.appUnlockType.Contains("1"))
                                     {
-                                        OnAppConfig.Instance.appUnlockType =new System.Collections.Generic.List<string>();//.Remove("1");
-                                        OnAppConfig.Instance.appUnlockPasswrod = "";
-                                        OnAppConfig.Instance.SaveUserConfig();
+                                        UserInfo.Current.appUnlockType =new System.Collections.Generic.List<string>();//.Remove("1");
+                                        UserInfo.Current.appUnlockPasswrod = "";
+                                        UserInfo.Current.SaveUserInfo();
                                         this.RemoveFromParent();
                                         backAction();
                                     }
@@ -253,22 +253,22 @@
                                 {
                                     if (optionType == "5")
                                     {
-                                        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();
                                     }
                                     backAction();
@@ -298,29 +298,29 @@
                                     {
                                         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);
                                             }
                                         }
                                         backAction();
-                                        OnAppConfig.Instance.SaveUserConfig();
+                                        UserInfo.Current.SaveUserInfo();
                                     };
                                     page.AdditionalOperations(tipMsg, action);
                                 }
-                                if (!OnAppConfig.Instance.appUnlockType.Contains("1"))
+                                if (!UserInfo.Current.appUnlockType.Contains("1"))
                                 {
-                                    OnAppConfig.Instance.appUnlockType.Add("1");
+                                    UserInfo.Current.appUnlockType.Add("1");
                                 }
-                                OnAppConfig.Instance.appUnlockPasswrod = passwrod;
-                                OnAppConfig.Instance.SaveUserConfig();
+                                UserInfo.Current.appUnlockPasswrod = passwrod;
+                                UserInfo.Current.SaveUserInfo();
                                 backAction();
                             }
                             else
@@ -363,24 +363,24 @@
                 {
                     if (optionType == "7")
                     {
-                        MainPage.GoLoginPage(MainPage.LoginUser);
+                        MainPage.GoLoginPage( UserInfo.Current);
                     }
                     else
                     {
                         Action<string> action = (pw) => {
-                            var resultObj = new HttpServerRequest().LoginByPassword(MainPage.LoginUser.accountString, pw);
-                            if (resultObj.Code.ToUpper() == HttpUtil.SUCCESS_CODE)
+                            var resultObj = new HttpServerRequest().LoginByPassword( UserInfo.Current.AccountString, pw);
+                            if (resultObj.Code.ToUpper() == 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();
                             }
                             else
                             {
                                 //鐧诲綍澶辫触
-                                IMessageCommon.Current.ShowErrorInfoAlter(NewAPI.API_POST_Login, resultObj.Code);
+                                IMessageCommon.Current.ShowErrorInfoAlter(resultObj.Code);
                             }
 
                         };

--
Gitblit v1.8.0