//处理中文乱码 services.AddControllers().AddJsonOptions(cfg => { cfg.JsonSerializerOptions.Encoder = JavaScriptEncoder.Create(UnicodeRanges.All); });