From 05bf072f88093f3fca969201860eefa8c784b2e9 Mon Sep 17 00:00:00 2001 From: Chr_ Date: Wed, 8 Jun 2022 13:54:51 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 5 ++++- ASFEnhance/AssemblyInfo.cs | 4 ++-- ASFEnhance/Other/WebRequest.cs | 4 +++- ASFEnhance/Store/WebRequest.cs | 2 +- ASFEnhance/Utils.cs | 4 ++-- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.editorconfig b/.editorconfig index c3d35abf..76d59072 100644 --- a/.editorconfig +++ b/.editorconfig @@ -77,7 +77,7 @@ dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggest #Style - Modifier preferences #when this rule is set to a list of modifiers, prefer the specified ordering. -csharp_preferred_modifier_order = public,internal,static,async,sealed:suggestion +csharp_preferred_modifier_order = public,internal,static,async,sealed:silent #Style - qualification options @@ -151,6 +151,9 @@ csharp_prefer_simple_using_statement = true:suggestion csharp_style_namespace_declarations = block_scoped:silent csharp_style_prefer_method_group_conversion = true:silent +# IDE0036: η +dotnet_diagnostic.IDE0036.severity = silent + [*.vb] #### ʽ #### diff --git a/ASFEnhance/AssemblyInfo.cs b/ASFEnhance/AssemblyInfo.cs index 405201cb..09ff684b 100644 --- a/ASFEnhance/AssemblyInfo.cs +++ b/ASFEnhance/AssemblyInfo.cs @@ -1,8 +1,8 @@ using System.Reflection; [assembly: System.CLSCompliant(false)] -[assembly: AssemblyVersion("1.6.4.463")] -[assembly: AssemblyFileVersion("1.6.4.463")] +[assembly: AssemblyVersion("1.6.4.464")] +[assembly: AssemblyFileVersion("1.6.4.464")] [assembly: AssemblyCopyright("Copyright © 2022 Chr_")] [assembly: AssemblyProduct("ASFEnhance")] diff --git a/ASFEnhance/Other/WebRequest.cs b/ASFEnhance/Other/WebRequest.cs index 969cabe2..31b353fb 100644 --- a/ASFEnhance/Other/WebRequest.cs +++ b/ASFEnhance/Other/WebRequest.cs @@ -1,4 +1,6 @@ -using ArchiSteamFarm.Core; +#pragma warning disable CS8632 // 只能在 "#nullable" 注释上下文内的代码中使用可为 null 的引用类型的注释。 + +using ArchiSteamFarm.Core; using ArchiSteamFarm.Web.Responses; using ASFEnhance.Data; diff --git a/ASFEnhance/Store/WebRequest.cs b/ASFEnhance/Store/WebRequest.cs index 185ec379..3e8b15ca 100644 --- a/ASFEnhance/Store/WebRequest.cs +++ b/ASFEnhance/Store/WebRequest.cs @@ -293,7 +293,7 @@ internal static async Task DeleteRecommend(Bot bot, uint gameID) result.AppendLine(Langs.PruchaseHistoryGroupAbout); result.AppendLine(string.Format(Langs.PruchaseHistoryAboutBaseRate, exchangeRate.Base)); - result.AppendLine(string.Format(Langs.PruchaseHistoryAboutPlugin, nameof(ASFEnhanceEx))); + result.AppendLine(string.Format(Langs.PruchaseHistoryAboutPlugin, nameof(ASFEnhance))); result.AppendLine(string.Format(Langs.PruchaseHistoryAboutUpdateTime, updateTime)); result.AppendLine(string.Format(Langs.PruchaseHistoryAboutRateSource)); diff --git a/ASFEnhance/Utils.cs b/ASFEnhance/Utils.cs index 7ced9aa2..3ac39de2 100644 --- a/ASFEnhance/Utils.cs +++ b/ASFEnhance/Utils.cs @@ -27,7 +27,7 @@ internal static string FormatStaticResponse(string message) } else { - return Commands.FormatStaticResponse($"{Langs.PluginUpdateReady}\n{message}"); + return Commands.FormatStaticResponse($"*{message}"); } } @@ -45,7 +45,7 @@ internal static string FormatBotResponse(this Bot bot, string message) } else { - return bot.Commands.FormatBotResponse($"{Langs.PluginUpdateReady}\n{message}"); + return bot.Commands.FormatBotResponse($"*{message}"); } }