From 9edbe83376543ebd6c6de28c90f4cdb50700e721 Mon Sep 17 00:00:00 2001 From: luoqian <2769838458@qq.com> Date: Tue, 26 May 2026 10:13:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E5=92=8C=E7=A8=8B=E5=BA=8F=E7=9A=84=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LMS.Tools/FileTool/QiniuService.cs | 2 +- LMS.service/Program.cs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/LMS.Tools/FileTool/QiniuService.cs b/LMS.Tools/FileTool/QiniuService.cs index 63b0bb1..adbdaf6 100644 --- a/LMS.Tools/FileTool/QiniuService.cs +++ b/LMS.Tools/FileTool/QiniuService.cs @@ -128,7 +128,7 @@ namespace LMS.Tools.FileTool UploadTime = DateTime.Now, Status = "active", CreatedAt = DateTime.Now, - DeleteTime = qiniuSettings.DeleteDay != null ? BeijingTimeExtension.GetBeijingTime().AddDays((double)qiniuSettings.DeleteDay) : DateTime.MaxValue // 默认未删除 + DeleteTime = qiniuSettings.DeleteDay != null ? BeijingTimeExtension.GetBeijingTime().AddDays((double)qiniuSettings.DeleteDay) : new DateTime(2099, 12, 31, 23, 59, 59) // 默认未删除 }; } } diff --git a/LMS.service/Program.cs b/LMS.service/Program.cs index a1fe13d..721a91c 100644 --- a/LMS.service/Program.cs +++ b/LMS.service/Program.cs @@ -11,6 +11,10 @@ using Microsoft.EntityFrameworkCore; using Serilog; var builder = WebApplication.CreateBuilder(args); +if (builder.Environment.IsDevelopment()) +{ + builder.WebHost.UseUrls("https://0.0.0.0:5001", "http://0.0.0.0:5002"); +} // Add services to the container.