diff --git a/projects/Infrastructure/Areas/Admin/Controllers/SettingController.cs b/projects/Infrastructure/Areas/Admin/Controllers/SettingController.cs index cd08fa92..fd9750c8 100644 --- a/projects/Infrastructure/Areas/Admin/Controllers/SettingController.cs +++ b/projects/Infrastructure/Areas/Admin/Controllers/SettingController.cs @@ -23,6 +23,7 @@ namespace Infrastructure.Areas.Admin.Controllers this._settingService = settingService; } + [System.Diagnostics.CodeAnalysis.SuppressMessage("Globalization", "CA1307:指定 StringComparison", Justification = "<挂起>")] public override IQueryable Query(PagedListModel model, IQueryable query) { if (model is null) diff --git a/projects/Infrastructure/Extensions/HelperExtensions.cs b/projects/Infrastructure/Extensions/HelperExtensions.cs index 2ca9d6f0..e2504d52 100644 --- a/projects/Infrastructure/Extensions/HelperExtensions.cs +++ b/projects/Infrastructure/Extensions/HelperExtensions.cs @@ -37,6 +37,7 @@ namespace Infrastructure.Extensions .FirstOrDefault(); } + [System.Diagnostics.CodeAnalysis.SuppressMessage("Security", "CA5351:不要使用损坏的加密算法", Justification = "<挂起>")] public static string MacEncrypt(this Helper helper, string value) { using var des = new DESCryptoServiceProvider();