Browse Source

更新调整

master
张剑 2 years ago
parent
commit
33525e4ec0
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      XHWK.WKTool/AppUpdateWin.xaml.cs

+ 2
- 4
XHWK.WKTool/AppUpdateWin.xaml.cs View File

50
         {
50
         {
51
             string fileUrl = APP.showImageUrl + pageData.appModel.versionpath;
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
             if (!info.Exists)
55
             if (!info.Exists)
56
             {
56
             {
57
                 info.Create();
57
                 info.Create();
58
             }
58
             }
59
 
59
 
60
-            //System.Console.WriteLine("fileUrl:" + fileUrl);
61
             string filename = fileUrl.Substring(fileUrl.LastIndexOf("/") + 1);
60
             string filename = fileUrl.Substring(fileUrl.LastIndexOf("/") + 1);
62
             if (filename != null)
61
             if (filename != null)
63
             {
62
             {
80
 
79
 
81
         public void downloadEnd(int position, string filepath)
80
         public void downloadEnd(int position, string filepath)
82
         {
81
         {
83
-            //System.Console.WriteLine("filepath:" + filepath);
84
             progress_sp.Visibility = Visibility.Collapsed;
82
             progress_sp.Visibility = Visibility.Collapsed;
85
             content_sv.Visibility = Visibility.Visible;
83
             content_sv.Visibility = Visibility.Visible;
86
             button_bottom.Visibility = Visibility.Visible;
84
             button_bottom.Visibility = Visibility.Visible;

Loading…
Cancel
Save