mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-21 02:57:54 +08:00
修复升级.net 9后webapi controller参数为空
This commit is contained in:
@@ -43,7 +43,7 @@ namespace OpenAuth.WebApi.Controllers
|
||||
/// <param name="obj"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public Response Add(AddOrUpdateWmsInboundOrderTblReq obj)
|
||||
public Response Add([FromBody] AddOrUpdateWmsInboundOrderTblReq obj)
|
||||
{
|
||||
var result = new Response();
|
||||
try
|
||||
@@ -69,7 +69,7 @@ namespace OpenAuth.WebApi.Controllers
|
||||
/// <param name="obj"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public Response Update(AddOrUpdateWmsInboundOrderTblReq obj)
|
||||
public Response Update([FromBody] AddOrUpdateWmsInboundOrderTblReq obj)
|
||||
{
|
||||
var result = new Response();
|
||||
try
|
||||
|
Reference in New Issue
Block a user