Skip to content

Commit

Permalink
bug修复
Browse files Browse the repository at this point in the history
  • Loading branch information
chr233 committed Jun 8, 2022
1 parent fa0e6d4 commit 05bf072
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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]
#### 命名样式 ####

Expand Down
4 changes: 2 additions & 2 deletions ASFEnhance/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -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")]
Expand Down
4 changes: 3 additions & 1 deletion ASFEnhance/Other/WebRequest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using ArchiSteamFarm.Core;
#pragma warning disable CS8632 // 只能在 "#nullable" 注释上下文内的代码中使用可为 null 的引用类型的注释。

using ArchiSteamFarm.Core;
using ArchiSteamFarm.Web.Responses;
using ASFEnhance.Data;

Expand Down
2 changes: 1 addition & 1 deletion ASFEnhance/Store/WebRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ internal static async Task<bool> 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));

Expand Down
4 changes: 2 additions & 2 deletions ASFEnhance/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal static string FormatStaticResponse(string message)
}
else
{
return Commands.FormatStaticResponse($"{Langs.PluginUpdateReady}\n{message}");
return Commands.FormatStaticResponse($"*{message}");
}
}

Expand All @@ -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}");
}
}

Expand Down

0 comments on commit 05bf072

Please sign in to comment.