Bläddra i källkod

更新调整

master
张剑 2 år sedan
förälder
incheckning
33525e4ec0
1 ändrade filer med 2 tillägg och 4 borttagningar
  1. 2
    4
      XHWK.WKTool/AppUpdateWin.xaml.cs

+ 2
- 4
XHWK.WKTool/AppUpdateWin.xaml.cs Visa fil

@@ -50,14 +50,13 @@ namespace XHWK.WKTool
50 50
         {
51 51
             string fileUrl = APP.showImageUrl + pageData.appModel.versionpath;
52 52
 
53
-            string temp = System.Environment.GetEnvironmentVariable("TEMP");
54
-            DirectoryInfo info = new DirectoryInfo(temp);
53
+            string path = AppDomain.CurrentDomain.BaseDirectory + "temp\\";
54
+            DirectoryInfo info = new DirectoryInfo(path);
55 55
             if (!info.Exists)
56 56
             {
57 57
                 info.Create();
58 58
             }
59 59
 
60
-            //System.Console.WriteLine("fileUrl:" + fileUrl);
61 60
             string filename = fileUrl.Substring(fileUrl.LastIndexOf("/") + 1);
62 61
             if (filename != null)
63 62
             {
@@ -80,7 +79,6 @@ namespace XHWK.WKTool
80 79
 
81 80
         public void downloadEnd(int position, string filepath)
82 81
         {
83
-            //System.Console.WriteLine("filepath:" + filepath);
84 82
             progress_sp.Visibility = Visibility.Collapsed;
85 83
             content_sv.Visibility = Visibility.Visible;
86 84
             button_bottom.Visibility = Visibility.Visible;

Laddar…
Avbryt
Spara