|
|
|
@ -20,6 +20,7 @@ using Volo.Abp.Caching; |
|
|
|
using Volo.Abp.Domain.Entities.Events.Distributed; |
|
|
|
using Volo.Abp.EntityFrameworkCore; |
|
|
|
using Volo.Abp.Identity.Localization; |
|
|
|
using Volo.Abp.Json; |
|
|
|
using Volo.Abp.Json.SystemTextJson; |
|
|
|
using Volo.Abp.Localization; |
|
|
|
using Volo.Abp.MultiTenancy; |
|
|
|
@ -71,6 +72,11 @@ namespace LINGYUN.Abp.IdentityServer4 |
|
|
|
|
|
|
|
private void ConfigureJsonSerializer() |
|
|
|
{ |
|
|
|
// 统一时间日期格式
|
|
|
|
Configure<AbpJsonOptions>(options => |
|
|
|
{ |
|
|
|
options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss"; |
|
|
|
}); |
|
|
|
// 中文序列化的编码问题
|
|
|
|
Configure<AbpSystemTextJsonSerializerOptions>(options => |
|
|
|
{ |
|
|
|
|