优化了微店商品上传 优化pdd买手读单

This commit is contained in:
wule committed 2026-04-15 21:04:37 +08:00
1 parent 6c4f16b897
commit f360688c43
62 files changed
+5620 -1432

No files matched your search

+15
View File
@@ -681,6 +681,8 @@ namespace AllBase
public static System.Collections.Generic.List<string> GetJsonObjStrJson(ref string html, string reg, int level = 0)
{
var startTime = DateTime.Now;
System.Collections.Generic.List<string> rstLst = new System.Collections.Generic.List<string>();
if (html == null)
return rstLst;
@@ -716,6 +718,10 @@ namespace AllBase
//htmlTmp = htmlTmp.Substring(1);
if (braceNum == 0)
{
var endTime1 = DateTime.Now;
if ((endTime1 - startTime).TotalSeconds > 1)
{
}
rstLst.Add(htmlTmp.Substring(0, i + 1).Replace("\\这里是正花括号占位符", "\\{").Replace("\\这里是反花括号占位符", "\\}"));
htmlTmp = htmlTmp.Substring(i + 1);
//rstLst.Add(rst.Replace("\\这里是正花括号占位符", "\\{").Replace("\\这里是反花括号占位符", "\\}"));
@@ -729,11 +735,16 @@ namespace AllBase
if (htmlTmp.Length > 0)
goto retry;
var endTime2 = DateTime.Now;
if ((endTime2 - startTime).TotalSeconds > 1)
{
}
return rstLst;
}
public static System.Collections.Generic.List<string> GetJsonArrStrJson(ref string html, string reg)
{
var startTime = DateTime.Now;
System.Collections.Generic.List<string> rstLst = new System.Collections.Generic.List<string>();
if (html == null)
return rstLst;
@@ -766,6 +777,10 @@ namespace AllBase
if (htmlTmp.Length > 0)
goto retry;
var endTime = DateTime.Now;
if ((endTime - startTime).TotalSeconds > 1)
{
}
return rstLst;
}