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 @@ - + - + - +