优化拍单 修复异常拍单和状态不准确订单无法拦截退回问题

This commit is contained in:
wule committed 2026-10-16 10:11:22 +08:00
1 parent e71ef72475
commit 75aae91b66
6 files changed
+130 -25

No files matched your search

+5 -2
View File
@@ -650,8 +650,9 @@ namespace TemuKJD.ToolForms
Task.Run(async () =>
{
// 自动下单
while (true && IsAutoBuy)
while (this.Created && IsAutoBuy)
{
Thread.Sleep(100);
if (HasChangeAddress && (this.cefWebBrowser?.GetMainFrame()?.Url).ParseToString().StartsWith("https://mobile.yangkeduo.com/order_checkout.html?sku_id="))
{
try
@@ -935,7 +936,7 @@ namespace TemuKJD.ToolForms
}
})();";
}
for (int i = 0; i < 20; i++)
for (int i = 0; i < 30; i++)
{
Thread.Sleep(100);
if (!this.Created)
@@ -1831,6 +1832,8 @@ namespace TemuKJD.ToolForms
/// </summary>
private void CleanupBrowserSubprocesses()
{
// 有可能释放错误导致程序崩溃,废弃
return;
try
{
string appBasePath = AppDomain.CurrentDomain.BaseDirectory.TrimEnd('\\', '/');