Browse Source

邮箱获取方式更改

lvle 2 years ago
parent
commit
b19a26e425

+ 0 - 1
PDF Office/Helper/ServiceHelper.cs

@@ -21,7 +21,6 @@ namespace PDF_Office.Helper
     {
 
         public static bool IsLogin=false;
-        public static string ALLEmail = "";
         public static string ALLPassword = "";
         public static string access_token = "";
         public static string outemail = "";

+ 0 - 2
PDF Office/ViewModels/Dialog/ServiceDialog/LoginRegionViewModel.cs

@@ -142,8 +142,6 @@ namespace PDF_Office.ViewModels.Dialog.ServiceDialog
             {
                 LoginEmaillook = ServiceHelper.Ok_email(LoginEmail, "1");
             }
-
-            ServiceHelper.ALLEmail = LoginEmail;
         }
 
 

+ 3 - 4
PDF Office/ViewModels/Dialog/ServiceDialog/UserDialogViewModel.cs

@@ -71,10 +71,9 @@ namespace PDF_Office.ViewModels.Dialog.ServiceDialog
             UserRegionName = Guid.NewGuid().ToString();
             UserOutCommand = new DelegateCommand(UserOut);
             LogOutCommand = new DelegateCommand(LogOut);
-            if (ServiceHelper.ALLEmail!="")
-            {
-                UserEmail = ServiceHelper.ALLEmail;
-            }
+
+            UserEmail = ServiceHelper.GetUser();
+           
         }
         public void UserOut()
         {