diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Packages/PackageAppService.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Packages/PackageAppService.cs index 7292aece0..eedec01ef 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Packages/PackageAppService.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Packages/PackageAppService.cs @@ -29,7 +29,7 @@ public class PackageAppService : PlatformApplicationServiceBase, IPackageAppServ { var package = await _packageRepository.FindLatestAsync(input.Name, input.Version); - return package == null ? PackageDto.None() : ObjectMapper.Map(package); + return ObjectMapper.Map(package); } [Authorize(PlatformPermissions.Package.Create)]