Browse Source
Merge pull request #13862 from abpframework/Add-LeptonX-To-CommercialPackage-List
Cli: Add LeptonX To Commercial Package List
pull/13868/head
liangshiwei
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
11 additions and
1 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/NuGet/CommercialPackages.cs
|
|
|
@ -14,6 +14,16 @@ internal static class CommercialPackages |
|
|
|
|
|
|
|
public static bool IsCommercial(string packageId) |
|
|
|
{ |
|
|
|
return Packages.Contains(packageId.ToLowerInvariant()); |
|
|
|
return Packages.Contains(packageId.ToLowerInvariant()) || IsLeptonXPackage(packageId); |
|
|
|
} |
|
|
|
|
|
|
|
private static bool IsLeptonXPackage(string packageId) |
|
|
|
{ |
|
|
|
return !IsLeptonXLitePackage(packageId) && packageId.Contains("LeptonX"); |
|
|
|
} |
|
|
|
|
|
|
|
private static bool IsLeptonXLitePackage(string packageId) |
|
|
|
{ |
|
|
|
return packageId.Contains("LeptonXLite"); |
|
|
|
} |
|
|
|
} |
|
|
|
|