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 });