From 9c3257b317a249eeafd88b813cd5e81cbaf2e7a9 Mon Sep 17 00:00:00 2001 From: shisupeng Date: Thu, 13 Feb 2025 15:04:36 +0800 Subject: [PATCH] 1 --- AutoUpdate/AutoUpdate/MainWindow.xaml | 3 +-- AutoUpdate/AutoUpdate/UpdateManager.cs | 2 +- AutoUpdate/AutoUpdate/系统参数.cs | 2 +- .../Controllers/自动更新Controller.cs | 2 +- .../Properties/launchSettings.json | 4 ++-- .../AutoUpdateServer/appsettings.Development.json | 14 +++++++------- 6 files changed, 13 insertions(+), 14 deletions(-) diff --git a/AutoUpdate/AutoUpdate/MainWindow.xaml b/AutoUpdate/AutoUpdate/MainWindow.xaml index 2250ef9..0157519 100644 --- a/AutoUpdate/AutoUpdate/MainWindow.xaml +++ b/AutoUpdate/AutoUpdate/MainWindow.xaml @@ -8,6 +8,5 @@ xmlns:local="clr-namespace:AutoUpdate" mc:Ignorable="d" Title="MainWindow" Height="450" Width="800" Loaded="MetroWindow_Loaded"> - - + diff --git a/AutoUpdate/AutoUpdate/UpdateManager.cs b/AutoUpdate/AutoUpdate/UpdateManager.cs index 5d13004..146ae38 100644 --- a/AutoUpdate/AutoUpdate/UpdateManager.cs +++ b/AutoUpdate/AutoUpdate/UpdateManager.cs @@ -56,7 +56,7 @@ if exist ""%~dp0Updates"" ( ) :: 启动程序 -start """" ""%~dp0LMES.exe"" +start """" ""%~dp0AutoUpdate.exe"" :: 删除自身 del ""%~f0"" diff --git a/AutoUpdate/AutoUpdate/系统参数.cs b/AutoUpdate/AutoUpdate/系统参数.cs index 10ebfa3..ea976eb 100644 --- a/AutoUpdate/AutoUpdate/系统参数.cs +++ b/AutoUpdate/AutoUpdate/系统参数.cs @@ -18,6 +18,6 @@ namespace AutoUpdate public class Lmes连接参数类 { - public string LMES地址 { get; set; } = @"http://127.0.0.1:5000/"; + public string LMES地址 { get; set; } = @"http://192.168.43.215:7116/"; } } diff --git a/AutoUpdate/AutoUpdateServer/Controllers/自动更新Controller.cs b/AutoUpdate/AutoUpdateServer/Controllers/自动更新Controller.cs index b4d4ae7..bbc515a 100644 --- a/AutoUpdate/AutoUpdateServer/Controllers/自动更新Controller.cs +++ b/AutoUpdate/AutoUpdateServer/Controllers/自动更新Controller.cs @@ -25,7 +25,7 @@ namespace AutoUpdateServer.Controllers // 设置版本文件存储路径 存储路径 = Path.Combine( Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), - "Lmes_1.0", + "SSP", "VersionInfo" ); diff --git a/AutoUpdate/AutoUpdateServer/Properties/launchSettings.json b/AutoUpdate/AutoUpdateServer/Properties/launchSettings.json index 135ac87..f189cb9 100644 --- a/AutoUpdate/AutoUpdateServer/Properties/launchSettings.json +++ b/AutoUpdate/AutoUpdateServer/Properties/launchSettings.json @@ -6,7 +6,7 @@ "dotnetRunMessages": true, "launchBrowser": true, "launchUrl": "swagger", - "applicationUrl": "http://localhost:5062", + "applicationUrl": "http://192.168.43.215:5062", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } @@ -16,7 +16,7 @@ "dotnetRunMessages": true, "launchBrowser": true, "launchUrl": "swagger", - "applicationUrl": "https://localhost:7116;http://localhost:5062", + "applicationUrl": "https://192.168.43.215:7116;http://localhost:5062", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } diff --git a/AutoUpdate/AutoUpdateServer/appsettings.Development.json b/AutoUpdate/AutoUpdateServer/appsettings.Development.json index 0268711..b91a2b7 100644 --- a/AutoUpdate/AutoUpdateServer/appsettings.Development.json +++ b/AutoUpdate/AutoUpdateServer/appsettings.Development.json @@ -5,11 +5,11 @@ "Microsoft.AspNetCore": "Warning" } }, - "Kestrel": { - "Endpoints": { - "Http": { - "Url": "http://*:5000" - } - } - } + //"Kestrel": { + // "Endpoints": { + // "Http": { + // "Url": "http://*:5000" + // } + // } + //} }