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.