From 93505139ac05dec923798c913a812f8006a1ff1c Mon Sep 17 00:00:00 2001 From: Chr_ Date: Tue, 17 May 2022 21:04:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=80=E6=AC=BE=E8=AF=86?= =?UTF-8?q?=E5=88=AB=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ASFEnhance/AssemblyInfo.cs | 4 ++-- ASFEnhance/Store/HtmlParser.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ASFEnhance/AssemblyInfo.cs b/ASFEnhance/AssemblyInfo.cs index a2d19aa2..e200cb3f 100644 --- a/ASFEnhance/AssemblyInfo.cs +++ b/ASFEnhance/AssemblyInfo.cs @@ -1,8 +1,8 @@ using System.Reflection; [assembly: System.CLSCompliant(false)] -[assembly: AssemblyVersion("1.5.20.377")] -[assembly: AssemblyFileVersion("1.5.20.377")] +[assembly: AssemblyVersion("1.5.20.380")] +[assembly: AssemblyFileVersion("1.5.20.380")] [assembly: AssemblyCopyright("Copyright © 2022 Chr_")] [assembly: AssemblyProduct("ASFEnhance")] diff --git a/ASFEnhance/Store/HtmlParser.cs b/ASFEnhance/Store/HtmlParser.cs index d6170edc..a2dcf809 100644 --- a/ASFEnhance/Store/HtmlParser.cs +++ b/ASFEnhance/Store/HtmlParser.cs @@ -314,14 +314,14 @@ int ParseMoneyString(string strMoney) continue; } - //IElement whtItem = row.QuerySelector("td.wht_items"); + IElement whtItem = row.QuerySelector("td.wht_items"); IElement whtType = row.QuerySelector("td.wht_type"); IElement whtTotal = row.QuerySelector("td.wht_total"); IElement whtChange = row.QuerySelector("td.wht_wallet_change.wallet_column"); - bool isRefund = whtType.HasAttribute("wht_refunded"); + bool isRefund = whtType.ClassName.Contains("wht_refunded"); - //string strItem = whtItem?.Text().Trim().Replace("\t", "") ?? ""; + string strItem = whtItem?.Text().Trim().Replace("\t", "") ?? ""; string strType = whtType?.Text().Trim().Replace("\t", "") ?? ""; string strTotal = whtTotal?.Text().Trim().Replace("\t", "") ?? ""; string strChange = whtChange?.Text().Trim().Replace("\t", "") ?? "";