1优化图片刷新机制防止图片内存不足报错 2优化退货包裹可能因店铺掉线导致数据不一致问题

This commit is contained in:
wule committed 2025-08-11 16:49:50 +08:00
1 parent 9bbdddefb6
commit abf3cfbd89
8 files changed
+555 -502

No files matched your search

@@ -836,7 +836,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
if ((jsonRst.Contains("当前操作人数太多,请稍后重试") || jsonRst.Contains("too quickly")) && tryCount < 5)
{
tryCount++;
Thread.Sleep(500 + Randomx.GetId(500));
Thread.Sleep(Randomx.GetId(3000, 5000));
goto tryAgain;
}
@@ -938,7 +938,13 @@ namespace TemuKJD.KJDForms.SalesCenterForms
}
string data = JsonHelper.SerializeObject(activityParam);
string submitRst = "";
Thread.Sleep(Randomx.GetId(1000, 5000));
submitRst = SubmitActivity(shop, activityParam.activityThematicId, data);
for (int j = 0; j < 4 && (jsonRst.Contains("当前操作人数太多,请稍后重试") || jsonRst.Contains("too quickly")); j++)
{
Thread.Sleep(Randomx.GetId(5000, 7500));
submitRst = SubmitActivity(shop, activityParam.activityThematicId, data);
}
if (!submitRst.Contains("\"success\":true"))
{
@@ -964,7 +970,6 @@ namespace TemuKJD.KJDForms.SalesCenterForms
submitRow.Cells["colMsg"].Value = "提交活动成功";
}
}));
Thread.Sleep(Randomx.GetId(1000, 2000));
// 如果提交成功且还有更多商品可报名,继续重复报名(已报名商品不会出现在搜索结果列表)
if (submitRst.Contains("\"success\":true") && jsonRst.Contains("\"hasMore\":true"))