1调整拼多多工作台cookie时的cef user-agent,防止掉线
2优化商品删除逻辑,修复bug 3查找pdd版本长时间运行程序卡死原因并尝试修复 4pdd上货记住主要上货选项避免每次都重新选择
This commit is contained in:
1 parent
61264a5a99
commit
5e9bdd1700
19 files changed
+612
-557
No files matched your search
@@ -594,7 +594,7 @@ namespace TemuKJD.PDDForms.ProductForms
|
||||
for (int i = 0; i < 3 && result.Contains("http error:500"); i++)
|
||||
{
|
||||
Thread.Sleep(Randomx.GetId(6000, 15000));
|
||||
result = up_goods(shop, ids);
|
||||
result = down_goods(shop, ids);
|
||||
}
|
||||
if (result.Contains("会话已过期"))
|
||||
{
|
||||
@@ -877,10 +877,10 @@ namespace TemuKJD.PDDForms.ProductForms
|
||||
if (shopProdLstTmp.Any(p => p.is_onsale == true))
|
||||
{
|
||||
result = down_goods(shop, ids);
|
||||
for (int i = 0; i < 3 && result.Contains("http error:500"); i++)
|
||||
for (int i = 0; i < 3 && (result.Contains("http error:500") || result.Contains("请求method,argument,body错误")); i++)
|
||||
{
|
||||
Thread.Sleep(Randomx.GetId(6000, 15000));
|
||||
result = up_goods(shop, ids);
|
||||
result = down_goods(shop, ids);
|
||||
}
|
||||
if (result.Contains("会话已过期"))
|
||||
{
|
||||
@@ -898,7 +898,7 @@ namespace TemuKJD.PDDForms.ProductForms
|
||||
if (!result.Contains("\"success\":true"))
|
||||
{
|
||||
var errMsg = BaseRegex.GetStringJson(ref result, "error_msg");
|
||||
if (string.IsNullOrEmpty(errMsg))
|
||||
if (string.IsNullOrEmpty(errMsg) || errMsg.Length <= 2)
|
||||
errMsg = result;
|
||||
|
||||
Invoke(new Action(() =>
|
||||
@@ -917,7 +917,7 @@ namespace TemuKJD.PDDForms.ProductForms
|
||||
for (int i = 0; i < 3 && result.Contains("http error:500"); i++)
|
||||
{
|
||||
Thread.Sleep(Randomx.GetId(6000, 15000));
|
||||
result = up_goods(shop, ids);
|
||||
result = del_goods(shop, ids);
|
||||
}
|
||||
if (result.Contains("会话已过期"))
|
||||
{
|
||||
@@ -934,8 +934,9 @@ namespace TemuKJD.PDDForms.ProductForms
|
||||
}
|
||||
if (!result.Contains("\"success\":true"))
|
||||
{
|
||||
result = GetHtml.Unicode2String(result);
|
||||
var errMsg = BaseRegex.GetStringJson(ref result, "error_msg");
|
||||
if (string.IsNullOrEmpty(errMsg))
|
||||
if (string.IsNullOrEmpty(errMsg) || errMsg.Length <= 2)
|
||||
errMsg = result;
|
||||
|
||||
Invoke(new Action(() =>
|
||||
|
||||
Reference in new issue
Block a user