deadmoon 4 年之前
父節點
當前提交
75a112775c
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Optimizer/MainForm.cs
  2. 二進制
      experiments/Optimizer-test.exe

+ 2 - 1
Optimizer/MainForm.cs

@@ -86,7 +86,7 @@ namespace Optimizer
             string latestVersion = string.Empty;
             string latestVersion = string.Empty;
             try
             try
             {
             {
-                latestVersion = client.DownloadString(_latestVersionLink);
+                latestVersion = client.DownloadString(_latestVersionLink).Trim();
             }
             }
             catch (Exception ex)
             catch (Exception ex)
             {
             {
@@ -94,6 +94,7 @@ namespace Optimizer
                 MessageBox.Show(ex.Message, "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
                 MessageBox.Show(ex.Message, "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
             }
             }
 
 
+            MessageBox.Show(latestVersion);
             if (!string.IsNullOrEmpty(latestVersion))
             if (!string.IsNullOrEmpty(latestVersion))
             {
             {
                 if (float.Parse(latestVersion) > Program.GetCurrentVersion())
                 if (float.Parse(latestVersion) > Program.GetCurrentVersion())

二進制
experiments/Optimizer-test.exe