优化店铺读取

This commit is contained in:
wule committed 2026-10-19 19:22:04 +08:00
1 parent 12fe0c26fb
commit f722993c3d
3 files changed
+16 -6

No files matched your search

+8 -4
View File
@@ -338,7 +338,8 @@ namespace _29WxOrderWpf
{
// 更新代发管理情况
foreach (var orderItem in order.orderItems)
Dispatcher.Invoke(new Action(() => { orderItem.UpdateOrderItemBuyButton(); }));
orderItem.UpdateOrderItemBuyButton();
//Dispatcher.Invoke(new Action(() => { orderItem.UpdateOrderItemBuyButton(); }));
}
}
}
@@ -364,10 +365,13 @@ namespace _29WxOrderWpf
isReadShop = false;
hasReadShop = true;
while (tList.Where(ta => !ta.IsFaulted && !ta.IsCompleted).Count() >= 1)
Task.Run(() =>
{
tList.RemoveAll(ta => ta.IsFaulted || ta.IsCompleted || ta.IsCanceled); Thread.Sleep(100);
}
while (tList.Where(ta => !ta.IsFaulted && !ta.IsCompleted).Count() >= 1)
{
tList.RemoveAll(ta => ta.IsFaulted || ta.IsCompleted || ta.IsCanceled); Thread.Sleep(100);
}
});
}
public void GetShopSupplier(List<ShopLoginInfo> shops)