mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-03-31 13:43:24 +08:00
修复升级.net 9后webapi controller参数为空
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user