fix #IB8X8Y 升级.NET 9 后添加角色报错

This commit is contained in:
yubaolee 2024-12-04 14:05:35 +08:00
parent 82fe559792
commit fb5f0c35b7
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="AutoMapper" Version="9.0.0" /> <PackageReference Include="AutoMapper" Version="13.0.1" />
<PackageReference Include="EnyimMemcachedCore" Version="2.5.3" /> <PackageReference Include="EnyimMemcachedCore" Version="2.5.3" />
<PackageReference Include="log4net" Version="2.0.12" /> <PackageReference Include="log4net" Version="2.0.12" />
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.2.2" /> <PackageReference Include="Microsoft.AspNetCore.Http" Version="2.2.2" />

View File

@ -39,7 +39,7 @@ namespace OpenAuth.WebApi.Controllers
//添加 //添加
[HttpPost] [HttpPost]
public Response Add(AddOrUpdate{ClassName}Req obj) public Response Add([FromBody]AddOrUpdate{ClassName}Req obj)
{ {
var result = new Response(); var result = new Response();
try try
@ -58,7 +58,7 @@ namespace OpenAuth.WebApi.Controllers
//修改 //修改
[HttpPost] [HttpPost]
public Response Update(AddOrUpdate{ClassName}Req obj) public Response Update([FromBody]AddOrUpdate{ClassName}Req obj)
{ {
var result = new Response(); var result = new Response();
try try