优化订单处理
This commit is contained in:
1 parent
85259d8335
commit
8f7e190974
10 files changed
+271
-125
No files matched your search
@@ -341,7 +341,7 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
|
||||
{
|
||||
while (!MainWindow.Instance.hasReadShop)
|
||||
{
|
||||
Thread.Sleep(100);
|
||||
await Task.Delay(100);
|
||||
}
|
||||
|
||||
BottomMsg = "开始读取订单...";
|
||||
@@ -404,7 +404,7 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
|
||||
data += "&start_time=" + startTime;
|
||||
data += "&end_time=" + endTime;
|
||||
}
|
||||
Thread.Sleep(200);
|
||||
await Task.Delay(200);
|
||||
|
||||
var html = GetHtml.PostUtf8(url, data);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
@@ -438,17 +438,17 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
|
||||
|
||||
// 读取订单详情
|
||||
if (string.IsNullOrEmpty(order_ids))
|
||||
Thread.Sleep(100);
|
||||
await Task.Delay(100);
|
||||
List<oms_wei_order_item_info> orderItems = GetOrderItemInfo(order_ids);
|
||||
|
||||
// 读取售后单
|
||||
if (string.IsNullOrEmpty(order_ids))
|
||||
Thread.Sleep(100);
|
||||
await Task.Delay(100);
|
||||
List<oms_wei_refund_info> refunds = GetOrderRefundInfo(order_ids);
|
||||
|
||||
// 读订单扩展
|
||||
if (string.IsNullOrEmpty(order_ids))
|
||||
Thread.Sleep(100);
|
||||
await Task.Delay(100);
|
||||
List<order_item_ext> orderItemExts = GetOrderItemExts(order_ids);
|
||||
if (string.IsNullOrEmpty(order_ids))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user