From c62359b50f941c5602a6bc3a1955ff9f4e316044 Mon Sep 17 00:00:00 2001 From: huzhiyun Date: Tue, 24 Feb 2026 16:06:52 +0800 Subject: [PATCH] 1 --- YuanXuan.IM.Api/Program.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/YuanXuan.IM.Api/Program.cs b/YuanXuan.IM.Api/Program.cs index 6cee9d0..52d306f 100644 --- a/YuanXuan.IM.Api/Program.cs +++ b/YuanXuan.IM.Api/Program.cs @@ -39,17 +39,12 @@ namespace YuanXuan.IM.Api opt.Filters.Add(); opt.Filters.Add(); opt.Filters.Add(); - //// ������֤�����������ƽ��ɵ��豸��¼ - //opt.Filters.Add(); }).AddNewtonsoftJson(opt => { - //����ѭ������ opt.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore; - //���ı��ֶδ�С opt.SerializerSettings.ContractResolver = new DefaultContractResolver(); opt.SerializerSettings.ContractResolver = new CustomContractResolver(); - //��������Ĭ�ϸ�ʽ������ opt.SerializerSettings.Converters.Add(new IsoDateTimeConverter() { DateTimeFormat = "yyyy-MM-dd HH:mm:ss" }); }); @@ -121,7 +116,7 @@ namespace YuanXuan.IM.Api app.UseHangfireDashboard("/hang", new DashboardOptions { IgnoreAntiforgeryToken = true, - DashboardTitle = "Hangfire���", + DashboardTitle = "Hangfire", Authorization = new[] { new MyHangfireFilter() }, IsReadOnlyFunc = (DashboardContext context) => false });