|
|
|
@ -54,6 +54,7 @@ using Shentun.Peis.VirtualPath; |
|
|
|
using System.Text.Encodings.Web; |
|
|
|
using System.Text.Unicode; |
|
|
|
using Volo.Abp.Json; |
|
|
|
using Shentun.Utilities; |
|
|
|
|
|
|
|
namespace Shentun.Peis; |
|
|
|
[DependsOn( |
|
|
|
@ -190,17 +191,18 @@ public class PeisHttpApiHostModule : AbpModule |
|
|
|
// options.JsonSerializerOptions.Encoder = JavaScriptEncoder.Create(UnicodeRanges.All);
|
|
|
|
// options.JsonSerializerOptions.PropertyNamingPolicy = null;
|
|
|
|
//});
|
|
|
|
//Configure<JsonOptions>(x =>
|
|
|
|
//{
|
|
|
|
// x.JsonSerializerOptions.Encoder = JavaScriptEncoder.Create(UnicodeRanges.All);
|
|
|
|
// //x.JsonSerializerOptions.PropertyNamingPolicy = null;
|
|
|
|
// x.JsonSerializerOptions.Converters.Add(new JsonTimeSpanConverter());
|
|
|
|
//});
|
|
|
|
|
|
|
|
Configure<AbpJsonOptions>(x => |
|
|
|
Configure<JsonOptions>(x => |
|
|
|
{ |
|
|
|
x.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss"; |
|
|
|
//x.JsonSerializerOptions.Encoder = JavaScriptEncoder.Create(UnicodeRanges.All);
|
|
|
|
x.JsonSerializerOptions.Converters.Add(new DateTimeJsonConverter()); |
|
|
|
x.JsonSerializerOptions.PropertyNameCaseInsensitive = true; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
//Configure<AbpJsonOptions>(x =>
|
|
|
|
//{
|
|
|
|
// x.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
|
|
|
|
//});
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|