修改绑定模型逻辑
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-01-19 14:25:59 +08:00
parent 59ba1a6193
commit 473d10533a
2 changed files with 48 additions and 15 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ builder.Services.AddJsonLocalization(options => options.ResourcesPath = "Resourc
builder.Services.AddControllers(options =>
{
// 插到最前,抢在默认绑定器之前
options.ModelBinderProviders.Insert(0, new NullableStructModelBinderProvider());
//options.ModelBinderProviders.Insert(0, new NullableStructModelBinderProvider());
options.Filters.Add<ModelActionFilter>();
options.Filters.Add<ProjectExceptionFilter>();