mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-03-31 21:53:24 +08:00
修复升级.net 9后webapi controller参数为空
This commit is contained in:
@@ -45,7 +45,7 @@ namespace OpenAuth.WebApi.Controllers
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public Response Add(AddOrUpdateDataPriviReq obj)
|
||||
public Response Add([FromBody] AddOrUpdateDataPriviReq obj)
|
||||
{
|
||||
var result = new Response();
|
||||
try
|
||||
@@ -67,7 +67,7 @@ namespace OpenAuth.WebApi.Controllers
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public Response Update(AddOrUpdateDataPriviReq obj)
|
||||
public Response Update([FromBody] AddOrUpdateDataPriviReq obj)
|
||||
{
|
||||
var result = new Response();
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user