淘宝拍单45% 优化中转仓拒收拦截退货等相关操作 拍单地址未修改的拦住付款按钮
This commit is contained in:
1 parent
f27ddca730
commit
d109a90302
11 files changed
+452
-42
No files matched your search
+31
-5
@@ -9,6 +9,7 @@ using System;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Web.Services.Description;
|
||||
|
||||
namespace AllBase
|
||||
{
|
||||
@@ -704,10 +705,20 @@ namespace AllBase
|
||||
return temp;
|
||||
}
|
||||
|
||||
public static string GetOneJsonObjStrJson(ref string html, string reg)
|
||||
{
|
||||
return GetJsonObjStrJson(ref html, reg).FirstOrDefault();
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="html"></param>
|
||||
/// <param name="reg"></param>
|
||||
/// <param name="sortType">max_length 返回最长的字符串,否则返回第一个匹配的</param>
|
||||
/// <returns></returns>
|
||||
public static string GetOneJsonObjStrJson(ref string html, string reg, string sortType = "max_length")
|
||||
{
|
||||
if (sortType == "max_length")
|
||||
return GetJsonObjStrJson(ref html, reg).OrderByDescending(s => s.Length).FirstOrDefault();
|
||||
else
|
||||
return GetJsonObjStrJson(ref html, reg).FirstOrDefault();
|
||||
}
|
||||
|
||||
public static System.Collections.Generic.List<string> GetJsonObjStrJson(ref string html, string reg, int level = 0)
|
||||
{
|
||||
@@ -772,7 +783,22 @@ namespace AllBase
|
||||
return rstLst;
|
||||
}
|
||||
|
||||
public static System.Collections.Generic.List<string> GetJsonArrStrJson(ref string html, string reg)
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="html"></param>
|
||||
/// <param name="reg">要查找的关键字</param>
|
||||
/// <param name="sortType">max_length 返回最长的字符串,否则返回第一个匹配的</param>
|
||||
/// <returns></returns>
|
||||
public static string GetOneJsonArrStrJson(ref string html, string reg, string sortType = "max_length")
|
||||
{
|
||||
if (sortType == "max_length")
|
||||
return GetJsonArrStrJson(ref html, reg).OrderByDescending(s => s.Length).FirstOrDefault();
|
||||
else
|
||||
return GetJsonArrStrJson(ref html, reg).FirstOrDefault();
|
||||
}
|
||||
|
||||
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>();
|
||||
|
||||
Reference in new issue
Block a user