From fd0fd6a6ac998d69d57534fcd21e2bc50fe5af1c Mon Sep 17 00:00:00 2001 From: chfei Date: Thu, 15 Oct 2026 16:27:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AF=BC=E5=85=A5=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=95=B0=E6=8D=AE=E5=A4=B1=E8=B4=A5=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ImportConverters/ConvertToPddFactory.cs | 44 ++++++++++--------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/TEMUKJD/BLL/ImportConverters/ConvertToPddFactory.cs b/TEMUKJD/BLL/ImportConverters/ConvertToPddFactory.cs index ce208b0..c3a495e 100644 --- a/TEMUKJD/BLL/ImportConverters/ConvertToPddFactory.cs +++ b/TEMUKJD/BLL/ImportConverters/ConvertToPddFactory.cs @@ -1,4 +1,5 @@ -using AllBase.Model.Result.PDDResult; +using AllBase; +using AllBase.Model.Result.PDDResult; using NaiBa.Util.Extension; using System; using System.Collections.Generic; @@ -35,6 +36,7 @@ namespace TemuKJD.BLL.ImportConverts } catch (Exception ex) { + LogSave.Add("wx导入失败---"+ex.Message); throw ex; } } @@ -42,25 +44,25 @@ namespace TemuKJD.BLL.ImportConverts } - public static PDDFrontProductInfo5 SetContentConvert(string content) - { + public static PDDFrontProductInfo5 SetContentConvert(string content) + { - foreach (IGoodsConverter item in _converters) - { - try - { - item.SetContent(content.ParseToString()); - if (item.IsMatch()) - { - return item.Convert(); - } - } - catch (Exception ex) - { - throw ex; - } - } - return null; - } - } + foreach (IGoodsConverter item in _converters) + { + try + { + item.SetContent(content.ParseToString()); + if (item.IsMatch()) + { + return item.Convert(); + } + } + catch (Exception ex) + { + throw ex; + } + } + return null; + } + } }