mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-04-02 14:33:24 +08:00
修复升级.net 9后webapi controller参数为空
This commit is contained in:
@@ -40,7 +40,7 @@ namespace OpenAuth.WebApi.Controllers
|
||||
|
||||
//修改
|
||||
[HttpPost]
|
||||
public Response Update(AddOrUpdateBuilderTableColumnReq obj)
|
||||
public Response Update([FromBody] AddOrUpdateBuilderTableColumnReq obj)
|
||||
{
|
||||
var result = new Response();
|
||||
try
|
||||
@@ -62,7 +62,7 @@ namespace OpenAuth.WebApi.Controllers
|
||||
/// <para>读取数据库结构与当前结构的差异,如果数据库有新增的字段,则自动加入</para>
|
||||
/// </summary>
|
||||
[HttpPost]
|
||||
public Response Sync(SyncStructureReq obj)
|
||||
public Response Sync([FromBody] SyncStructureReq obj)
|
||||
{
|
||||
var result = new Response();
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user