From a3d3dc7df1716c76cc0d4c15dfa2666b98946438 Mon Sep 17 00:00:00 2001 From: milimoe Date: Fri, 11 Jul 2025 00:57:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E6=95=B0=E4=BD=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9B=E6=8A=A5=E4=BB=B7=E6=97=B6=E9=97=B4?= =?UTF-8?q?=20BUG=20=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Entity/Character/Character.cs | 6 +++--- Entity/Item/Item.cs | 4 ++-- Library/SQLScript/Entity/OffersQuery.cs | 5 +++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Entity/Character/Character.cs b/Entity/Character/Character.cs index 429f79c..ab07f1b 100644 --- a/Entity/Character/Character.cs +++ b/Entity/Character/Character.cs @@ -1390,7 +1390,7 @@ namespace Milimoe.FunGame.Core.Entity if (showEXP) { builder.AppendLine($"等级:{Level} / {GameplayEquilibriumConstant.MaxLevel}(突破进度:{LevelBreak + 1} / {GameplayEquilibriumConstant.LevelBreakList.Count})"); - builder.AppendLine($"经验值:{EXP}{(Level != GameplayEquilibriumConstant.MaxLevel && GameplayEquilibriumConstant.EXPUpperLimit.TryGetValue(Level, out double need) ? " / " + need : "")}"); + builder.AppendLine($"经验值:{EXP:0.##}{(Level != GameplayEquilibriumConstant.MaxLevel && GameplayEquilibriumConstant.EXPUpperLimit.TryGetValue(Level, out double need) ? " / " + need : "")}"); } double exHP = ExHP + ExHP2 + ExHP3; List shield = []; @@ -1477,7 +1477,7 @@ namespace Milimoe.FunGame.Core.Entity if (showEXP) { builder.AppendLine($"等级:{Level} / {GameplayEquilibriumConstant.MaxLevel}(突破进度:{LevelBreak + 1} / {GameplayEquilibriumConstant.LevelBreakList.Count})"); - builder.AppendLine($"经验值:{EXP}{(Level != GameplayEquilibriumConstant.MaxLevel && GameplayEquilibriumConstant.EXPUpperLimit.TryGetValue(Level, out double need) ? " / " + need : "")}"); + builder.AppendLine($"经验值:{EXP:0.##}{(Level != GameplayEquilibriumConstant.MaxLevel && GameplayEquilibriumConstant.EXPUpperLimit.TryGetValue(Level, out double need) ? " / " + need : "")}"); } double exHP = ExHP + ExHP2 + ExHP3; List shield = []; @@ -1687,7 +1687,7 @@ namespace Milimoe.FunGame.Core.Entity if (showEXP) { builder.AppendLine($"等级:{Level} / {GameplayEquilibriumConstant.MaxLevel}(突破进度:{LevelBreak + 1} / {GameplayEquilibriumConstant.LevelBreakList.Count})"); - builder.AppendLine($"经验值:{EXP}{(Level != GameplayEquilibriumConstant.MaxLevel && GameplayEquilibriumConstant.EXPUpperLimit.TryGetValue(Level, out double need) ? " / " + need : "")}"); + builder.AppendLine($"经验值:{EXP:0.##}{(Level != GameplayEquilibriumConstant.MaxLevel && GameplayEquilibriumConstant.EXPUpperLimit.TryGetValue(Level, out double need) ? " / " + need : "")}"); } double exHP = ExHP + ExHP2 + ExHP3; List shield = []; diff --git a/Entity/Item/Item.cs b/Entity/Item/Item.cs index 52bf5f5..b97da5b 100644 --- a/Entity/Item/Item.cs +++ b/Entity/Item/Item.cs @@ -446,11 +446,11 @@ namespace Milimoe.FunGame.Core.Entity if (isShowInStore && Price > 0) { - builder.AppendLine($"售价:{Price} {GameplayEquilibriumConstant.InGameCurrency}"); + builder.AppendLine($"售价:{Price:0.##} {GameplayEquilibriumConstant.InGameCurrency}"); } else if (Price > 0) { - builder.AppendLine($"回收价:{Price} {GameplayEquilibriumConstant.InGameCurrency}"); + builder.AppendLine($"回收价:{Price:0.##} {GameplayEquilibriumConstant.InGameCurrency}"); } if (RemainUseTimes > 0) diff --git a/Library/SQLScript/Entity/OffersQuery.cs b/Library/SQLScript/Entity/OffersQuery.cs index 366186a..6e77bf4 100644 --- a/Library/SQLScript/Entity/OffersQuery.cs +++ b/Library/SQLScript/Entity/OffersQuery.cs @@ -39,10 +39,11 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Entity SQLHelper.Parameters["@Offeror"] = Offeror; SQLHelper.Parameters["@Offeree"] = Offeree; SQLHelper.Parameters["@Status"] = (int)Status; + SQLHelper.Parameters["@CreateTime"] = DateTime.Now; SQLHelper.Parameters["@NegotiatedTimes"] = NegotiatedTimes; - return $"{Command_Insert} {Command_Into} {TableName} ({Column_Offeror}, {Column_Offeree}, {Column_Status}, {Column_NegotiatedTimes}) " + - $"{Command_Values} (@Offeror, @Offeree, @Status, @NegotiatedTimes)"; + return $"{Command_Insert} {Command_Into} {TableName} ({Column_Offeror}, {Column_Offeree}, {Column_Status}, {Column_CreateTime}), {Column_NegotiatedTimes}) " + + $"{Command_Values} (@Offeror, @Offeree, @Status, @CreateTime, @NegotiatedTimes)"; } public static string Update_OfferStatus(SQLHelper SQLHelper, long Id, OfferState Status)