Forráskód Böngészése

轻会员-自测bug修复

lvle 1 éve
szülő
commit
247a7162e4

+ 2 - 0
PDF Office/ViewModels/Dialog/NoviceGuidDialogViewModel.cs

@@ -7,6 +7,7 @@ using Prism.Services.Dialogs;
 using System;
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
+using System.Diagnostics;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
@@ -194,6 +195,7 @@ namespace PDF_Master.ViewModels.Dialog
             //忽略,下次再看
             //2023.7.17 策略调整,因配图较多,不显示再提示字样 
             //this.RequestClose(new DialogResult(ButtonResult.Ignore));
+            Process.Start(new ProcessStartInfo("http://test-pdf-pro.kdan.cn:3021/windows/store/master?email=" + Settings.Default.UserDate.Email));
         }
 
         private void InitItemSource()

+ 19 - 1
PDF Office/ViewModels/Dialog/ServiceDialog/UserDialogViewModel.cs

@@ -305,7 +305,7 @@ namespace PDF_Master.ViewModels.Dialog.ServiceDialog
             get { return _Subscriptionauto; }
             set { _Subscriptionauto = value; }
         }
-        private string _uristore = "http://test-pdf-pro.kdan.cn:3021/windows/account/master-subscription?appid=16&productId=22&token=" + Settings.Default.AppProperties.LoginToken;
+        private string _uristore = "http://test-pdf-pro.kdan.cn:3021/windows/store/master-subscription?email=" + Settings.Default.UserDate.Email;
         public string Uristore
         {
             get { return _uristore; }
@@ -315,11 +315,23 @@ namespace PDF_Master.ViewModels.Dialog.ServiceDialog
 
             }
         }
+        private string _Uriuserdata = "http://test-pdf-pro.kdan.cn:3021/windows/account/master-subscription?appid=16&productId=22&token=" + Settings.Default.AppProperties.LoginToken;
+        public string Uriuserdata
+        {
+            get { return _Uriuserdata; }
+            set
+            {
+                SetProperty(ref _Uriuserdata, value);
+
+            }
+        }
 
         public DelegateCommand LinkstoreCommand { get; set; }
 
         public DelegateCommand UserOutCommand { get; set; }
         public DelegateCommand LogOutCommand { get; set; }
+        public DelegateCommand LinkuserdataCommand { get; set; }
+       
 
         UserDialogViewModel(IRegionManager regionManager, IDialogService dialogService)
         {
@@ -329,6 +341,7 @@ namespace PDF_Master.ViewModels.Dialog.ServiceDialog
             UserOutCommand = new DelegateCommand(UserOut);
             LogOutCommand = new DelegateCommand(LogOut);
             LinkstoreCommand = new DelegateCommand(Linkstore);
+            LinkuserdataCommand = new DelegateCommand(Linkuserdata);
 
 
             TextSubscribeEndtime = Settings.Default.UserDate.subscribeendDate;
@@ -377,6 +390,11 @@ namespace PDF_Master.ViewModels.Dialog.ServiceDialog
 
             Process.Start(new ProcessStartInfo(Uristore));
         }
+        private void Linkuserdata()
+        {
+
+            Process.Start(new ProcessStartInfo(Uriuserdata));
+        }
 
 
         public void UserOut()

+ 1 - 1
PDF Office/Views/Dialog/ServiceDialog/UserDialog.xaml

@@ -176,7 +176,7 @@
                     FontSize="14"
                     Foreground="#1770F4"
                     LineHeight="22">
-                    <Hyperlink Command="{Binding LinkstoreCommand}">
+                    <Hyperlink Command="{Binding LinkuserdataCommand}">
                         <Hyperlink.Style>
                             <Style BasedOn="{StaticResource {x:Type Hyperlink}}" TargetType="Hyperlink">
                                 <Setter Property="FocusVisualStyle" Value="{x:Null}" />