From 6bfea14038865a02de48aa319d95c2f6a5a7af76 Mon Sep 17 00:00:00 2001 From: shanj <18996038927@163.com> Date: Fri, 6 Oct 2023 11:10:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B0=8F=E6=95=B0=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BBWY.Client/Converters/InputNumberConverter.cs | 5 ++++- BBWY.Client/GlobalContext.cs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/BBWY.Client/Converters/InputNumberConverter.cs b/BBWY.Client/Converters/InputNumberConverter.cs index 1d951673..ce9c2890 100644 --- a/BBWY.Client/Converters/InputNumberConverter.cs +++ b/BBWY.Client/Converters/InputNumberConverter.cs @@ -18,7 +18,10 @@ namespace BBWY.Client.Converters if (string.IsNullOrEmpty(strValue)) return null; decimal result; - if (strValue.IndexOf('.') == strValue.Length - 1 || !decimal.TryParse(strValue, out result)) + var dotIndex = strValue.IndexOf('.'); + if (dotIndex == strValue.Length - 1 || + (dotIndex != -1 && strValue.EndsWith("0")) || + !decimal.TryParse(strValue, out result)) return DependencyProperty.UnsetValue; return result; } diff --git a/BBWY.Client/GlobalContext.cs b/BBWY.Client/GlobalContext.cs index 31a74106..c8e7d4bb 100644 --- a/BBWY.Client/GlobalContext.cs +++ b/BBWY.Client/GlobalContext.cs @@ -13,7 +13,7 @@ namespace BBWY.Client { ShopServiceGroupList = new List(); ShopServiceGroupLowerList = new List(); - ClientVersion = "10185"; + ClientVersion = "10186"; } private User user;