瀏覽代碼

Fix bug 0019650: 【工作站】安装工作站,登录admin,添加智能卡账号,添加成功,但登录时不能自动登录,提示“账号不存在”

jimmy.jiang@vinno.com 8 月之前
父節點
當前提交
e6ebaf846e

+ 27 - 27
Client/PC/vStation/Presentation/MainWindow.xaml.cs

@@ -57,22 +57,22 @@ namespace vStation.Presentation
             _timer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(5) };
             IdCardReader();
             SetCardReaderApp();
-            if (ShouldCheckDongleLicense())
-            {
-                InitializeExpiredTime();
-                _timer.Tick += OnTimeTicked;
-                if (!LicenseValid() && FreeTrialExpired())
-                {
-                    UserLogger.Write("Application shutdown due to invalid license.");
-                    Logger.WriteLineInfo("Application shutdown due to invalid license.");
-                    ShowInvalidLicenseMessage("DongleMissing");
-                    if (Application.Current != null)
-                    {
-                        Application.Current.Shutdown();
-                    }
-                    return;
-                }
-            }
+            //if (ShouldCheckDongleLicense())
+            //{
+            //    InitializeExpiredTime();
+            //    _timer.Tick += OnTimeTicked;
+            //    if (!LicenseValid() && FreeTrialExpired())
+            //    {
+            //        UserLogger.Write("Application shutdown due to invalid license.");
+            //        Logger.WriteLineInfo("Application shutdown due to invalid license.");
+            //        ShowInvalidLicenseMessage("DongleMissing");
+            //        if (Application.Current != null)
+            //        {
+            //            Application.Current.Shutdown();
+            //        }
+            //        return;
+            //    }
+            //}
 
             _timer.Start();
             _splashWindow = new SplashWindow();
@@ -189,17 +189,17 @@ namespace vStation.Presentation
 
         private void OnTimeTicked(object sender, EventArgs e)
         {
-            Task.Run(() =>
-            {
-                if (!LicenseValid() && FreeTrialExpired())
-                {
-                    _timer.Tick -= OnTimeTicked;
-                    _timer.Stop();
-                    UserLogger.Write("Application shutdown due to invalid license.");
-                    Logger.WriteLineInfo("Application shutdown due to invalid license.");
-                    Dispatcher.Invoke(() => { ShowInvalidLicenseMessage("DongleMissing"); });
-                }
-            });
+            //Task.Run(() =>
+            //{
+            //    if (!LicenseValid() && FreeTrialExpired())
+            //    {
+            //        _timer.Tick -= OnTimeTicked;
+            //        _timer.Stop();
+            //        UserLogger.Write("Application shutdown due to invalid license.");
+            //        Logger.WriteLineInfo("Application shutdown due to invalid license.");
+            //        Dispatcher.Invoke(() => { ShowInvalidLicenseMessage("DongleMissing"); });
+            //    }
+            //});
         }
 
         private void RegisterFunctions()

+ 1 - 1
Client/PC/vStation/URMStationRelevant/Dongle/DongleHelper.cs

@@ -93,7 +93,7 @@ namespace vStation.URMStationRelevant.Dongle
                         if (userReader.Initialize(_password) || userReader.Initialize(_passwordOld))
                         {
                             currSerial = nSerial;
-                            var text = userReader.ReadString(186);
+                            var text = userReader.ReadString(174);
                             var index = text.IndexOf("}");
                             var validText = text.Substring(0, index + 1);
                             var dongleData = EncryptHelper.Decrypt(validText);

二進制
URMStationOutput/vStation/Db/vStation.db


+ 26 - 0
URMStationOutput/vStation/Logs/Log_20240731.txt

@@ -0,0 +1,26 @@
+[20240731203435,325]-E ; [Thread:1]Unhandled exception:System.IO.DirectoryNotFoundException: 未能找到路径“E:\FISStation\vStationURM\URMStationOutput\vStation\Settings\Station\Setting.ini”的一部分。
+   在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
+   在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
+   在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
+   在 System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
+   在 System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
+   在 vStation.Utilities.Configuration.ConfigHelper.LoadConfig(String path) 位置 E:\FISStation\vStationURM\Client\PC\vStation\Utilities\Configuration\ConfigHelper.cs:行号 14
+   在 vStation.Module.SystemSetting.ParameterReader.LoadParameters(String path) 位置 E:\FISStation\vStationURM\Client\PC\vStation\Module\SystemSetting\ParameterReader.cs:行号 20
+   在 vStation.Module.SystemSetting.SystemSettingManager..ctor() 位置 E:\FISStation\vStationURM\Client\PC\vStation\Module\SystemSetting\SystemSettingManager.cs:行号 163
+   在 vStation.App.OnStartup(StartupEventArgs e) 位置 E:\FISStation\vStationURM\Client\PC\vStation\App.xaml.cs:行号 62
+   在 System.Windows.Application.<.ctor>b__1_0(Object unused)
+   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
+   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
+[20240731203844,186]-E ; [Thread:1]Unhandled exception:System.IO.DirectoryNotFoundException: 未能找到路径“E:\FISStation\vStationURM\URMStationOutput\vStation\Settings\Station\Setting.ini”的一部分。
+   在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
+   在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
+   在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
+   在 System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
+   在 System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
+   在 vStation.Utilities.Configuration.ConfigHelper.LoadConfig(String path) 位置 E:\FISStation\vStationURM\Client\PC\vStation\Utilities\Configuration\ConfigHelper.cs:行号 14
+   在 vStation.Module.SystemSetting.ParameterReader.LoadParameters(String path) 位置 E:\FISStation\vStationURM\Client\PC\vStation\Module\SystemSetting\ParameterReader.cs:行号 20
+   在 vStation.Module.SystemSetting.SystemSettingManager..ctor() 位置 E:\FISStation\vStationURM\Client\PC\vStation\Module\SystemSetting\SystemSettingManager.cs:行号 163
+   在 vStation.App.OnStartup(StartupEventArgs e) 位置 E:\FISStation\vStationURM\Client\PC\vStation\App.xaml.cs:行号 62
+   在 System.Windows.Application.<.ctor>b__1_0(Object unused)
+   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
+   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

+ 0 - 0
URMStationOutput/vStation/sqlite3.x64.dll → URMStationOutput/vStation/sqlite3.dll


二進制
URMStationOutput/vStation/sqlite3.x86.dll


二進制
URMStationOutput/vStation/vStation.exe


二進制
URMStationOutput/vStation/vStation.pdb


二進制
URMStationOutput/vStationManagmentTool/vStationManagementTool.exe


二進制
URMStationOutput/vStationManagmentTool/vStationManagementTool.pdb