解决cef 138版本多开软件报错问题
This commit is contained in:
1 parent
66a2d815be
commit
0492e87aee
6 files changed
+90
-72
No files matched your search
@@ -318,7 +318,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
|
||||
if (jsonRst.Contains("当前操作人数太多,请稍后重试") && tryCount < 5)
|
||||
{
|
||||
tryCount++;
|
||||
Thread.Sleep(Randomx.GetId(3000, 5000));
|
||||
Thread.Sleep(Randomx.GetId(5000, 7000));
|
||||
goto tryAgain;
|
||||
}
|
||||
|
||||
@@ -580,7 +580,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
|
||||
if ((jsonRst.Contains("当前操作人数太多,请稍后重试") || jsonRst.Contains("too quickly")) && tryCount < 5)
|
||||
{
|
||||
tryCount++;
|
||||
Thread.Sleep(Randomx.GetId(3000, 5000));
|
||||
Thread.Sleep(Randomx.GetId(5000, 7000));
|
||||
goto tryAgain;
|
||||
}
|
||||
if (!jsonRst.Contains("\"success\":true"))
|
||||
@@ -884,7 +884,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
|
||||
if ((jsonRst.Contains("当前操作人数太多,请稍后重试") || jsonRst.Contains("too quickly")) && tryCount < 5)
|
||||
{
|
||||
tryCount++;
|
||||
Thread.Sleep(Randomx.GetId(3000, 5000));
|
||||
Thread.Sleep(Randomx.GetId(5000, 7000));
|
||||
goto tryAgain;
|
||||
}
|
||||
|
||||
@@ -989,11 +989,11 @@ namespace TemuKJD.KJDForms.SalesCenterForms
|
||||
}
|
||||
string data = JsonHelper.SerializeObject(activityParam);
|
||||
string submitRst = "";
|
||||
Thread.Sleep(Randomx.GetId(1000, 5000));
|
||||
Thread.Sleep(Randomx.GetId(3000, 6000));
|
||||
submitRst = SubmitActivity(shop, activityParam.activityType, activityParam.activityThematicId, data);
|
||||
for (int j = 0; j < 4 && (jsonRst.Contains("当前操作人数太多,请稍后重试") || jsonRst.Contains("too quickly")); j++)
|
||||
{
|
||||
Thread.Sleep(Randomx.GetId(5000, 7500));
|
||||
Thread.Sleep(Randomx.GetId(6000, 10000));
|
||||
submitRst = SubmitActivity(shop, activityParam.activityType, activityParam.activityThematicId, data);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user