diff --git a/admin.net.pro/Admin.NET/Vistar.Application/Service/SapOpenInterface/SapOpenInterfaceService.cs b/admin.net.pro/Admin.NET/Vistar.Application/Service/SapOpenInterface/SapOpenInterfaceService.cs index 4c74f49..d9d2774 100644 --- a/admin.net.pro/Admin.NET/Vistar.Application/Service/SapOpenInterface/SapOpenInterfaceService.cs +++ b/admin.net.pro/Admin.NET/Vistar.Application/Service/SapOpenInterface/SapOpenInterfaceService.cs @@ -53,7 +53,7 @@ public class SapOpenInterfaceService : IDynamicApiController, ITransient if (string.IsNullOrWhiteSpace(input._System_objNBS) || string.IsNullOrWhiteSpace(input._System_objDescription)) { - response.Success = true; + response.Success = false; response.Message = "请输入必填字段"; return response; } @@ -98,7 +98,7 @@ public class SapOpenInterfaceService : IDynamicApiController, ITransient .Where(x => x._System_objNBS == input._System_objNBS && x.deleted == false) .ExecuteCommandHasChangeAsync(); - response.Success = true; + response.Success = updateable; response.Message = updateable ? "修改成功" : "修改失败"; return response; }