From 98f00df0945eda87589a85bebe390de77d47f470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=82=E6=84=8F=20=E5=BD=AD?= <2417589739@qq.com> Date: Sat, 14 May 2022 11:44:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BPASmartClient.Business/Plugin/OrderProxy.cs | 22 -------------------- BPASmartClient/App.config | 8 +++---- 2 files changed, 4 insertions(+), 26 deletions(-) diff --git a/BPASmartClient.Business/Plugin/OrderProxy.cs b/BPASmartClient.Business/Plugin/OrderProxy.cs index 2a2be126..2f0a2b36 100644 --- a/BPASmartClient.Business/Plugin/OrderProxy.cs +++ b/BPASmartClient.Business/Plugin/OrderProxy.cs @@ -56,25 +56,6 @@ namespace BPASmartClient.Business Thread.Sleep(1000); }), "sim order"); } - //#if test - // ThreadManage.GetInstance().StartLong(new Action(() => - // { - // while (morkOrderPushes.Count > 0) - // { - // if (morkOrderPushes.TryDequeue(out MorkOrderPush mork)) - // { - // Thread.Sleep(3000); - // new OrderStatusChangedEvent() { Status = ORDER_STATUS.COOKING, SubOrderId = mork.SuborderId }.Publish(); - // Thread.Sleep(5000); - // new OrderStatusChangedEvent() { Status = ORDER_STATUS.COMPLETED_COOK, SubOrderId = mork.SuborderId }.Publish(); - // Thread.Sleep(5000); - // new OrderStatusChangedEvent() { Status = ORDER_STATUS.COMPLETED_TAKE, SubOrderId = mork.SuborderId }.Publish(); - // Thread.Sleep(2000); - // } - // } - // Thread.Sleep(1000); - // }), "sim order"); - //#endif } public void Start() @@ -126,9 +107,6 @@ namespace BPASmartClient.Business if (orders[deviceId].TryDequeue(out MorkOrderPush temp)) { if (InternetInfo.IsEnableTest) morkOrderPushes.Enqueue(temp); - //#if test - // morkOrderPushes.Enqueue(temp); - //#endif var orderEvent = DoOrderEvent.Make(temp); orderEvent.DeviceId = device.DeviceId; orderEvent.Publish(); diff --git a/BPASmartClient/App.config b/BPASmartClient/App.config index de21c96d..4ea35f28 100644 --- a/BPASmartClient/App.config +++ b/BPASmartClient/App.config @@ -3,7 +3,7 @@ - + @@ -34,16 +34,16 @@ - + - + - +