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:
@@ -41,7 +41,7 @@ namespace OpenAuth.WebApi.Controllers
|
||||
|
||||
//添加
|
||||
[HttpPost]
|
||||
public Response<string> Add(AddOrUpdateSysPrinterPlanReq obj)
|
||||
public Response<string> Add([FromBody] AddOrUpdateSysPrinterPlanReq obj)
|
||||
{
|
||||
var result = new Response<string>();
|
||||
try
|
||||
@@ -103,7 +103,7 @@ namespace OpenAuth.WebApi.Controllers
|
||||
|
||||
//修改
|
||||
[HttpPost]
|
||||
public Response Update(AddOrUpdateSysPrinterPlanReq obj)
|
||||
public Response Update([FromBody] AddOrUpdateSysPrinterPlanReq obj)
|
||||
{
|
||||
var result = new Response();
|
||||
try
|
||||
|
Reference in New Issue
Block a user