增加导入微信数据失败日志
This commit is contained in:
1 parent
32c4213fcf
commit
fd0fd6a6ac
1 file changed
+23
-21
@@ -1,4 +1,5 @@
|
|||||||
using AllBase.Model.Result.PDDResult;
|
using AllBase;
|
||||||
|
using AllBase.Model.Result.PDDResult;
|
||||||
using NaiBa.Util.Extension;
|
using NaiBa.Util.Extension;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@@ -35,6 +36,7 @@ namespace TemuKJD.BLL.ImportConverts
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
LogSave.Add("wx导入失败---"+ex.Message);
|
||||||
throw ex;
|
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)
|
foreach (IGoodsConverter item in _converters)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
item.SetContent(content.ParseToString());
|
item.SetContent(content.ParseToString());
|
||||||
if (item.IsMatch())
|
if (item.IsMatch())
|
||||||
{
|
{
|
||||||
return item.Convert();
|
return item.Convert();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user