修复升级.net 9后webapi controller参数为空

This commit is contained in:
wintel
2024-12-02 20:52:35 +08:00
parent b17be2c2a0
commit beaf0e5200
23 changed files with 56 additions and 56 deletions

View File

@@ -49,7 +49,7 @@ namespace OpenAuth.WebApi.Controllers
//添加或修改
[HttpPost]
public Response Add(Form obj)
public Response Add([FromBody] Form obj)
{
var result = new Response();
try
@@ -68,7 +68,7 @@ namespace OpenAuth.WebApi.Controllers
//添加或修改
[HttpPost]
public Response Update(Form obj)
public Response Update([FromBody] Form obj)
{
var result = new Response();
try