修改文件日期和程序的启动端口
This commit is contained in:
parent
8019b24b61
commit
9edbe83376
@ -128,7 +128,7 @@ namespace LMS.Tools.FileTool
|
|||||||
UploadTime = DateTime.Now,
|
UploadTime = DateTime.Now,
|
||||||
Status = "active",
|
Status = "active",
|
||||||
CreatedAt = DateTime.Now,
|
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) // 默认未删除
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,6 +11,10 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Serilog;
|
using Serilog;
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
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.
|
// Add services to the container.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user