Browse Source

订单状态

样式分支
pry 2 years ago
parent
commit
98f00df094
2 changed files with 4 additions and 26 deletions
  1. +0
    -22
      BPASmartClient.Business/Plugin/OrderProxy.cs
  2. +4
    -4
      BPASmartClient/App.config

+ 0
- 22
BPASmartClient.Business/Plugin/OrderProxy.cs View File

@@ -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();


+ 4
- 4
BPASmartClient/App.config View File

@@ -3,7 +3,7 @@
<appSettings>
<!--通用配置-->
<!--1:且时且多冰淇淋咖啡机,2:且时且多煮面机,3:海科煮面机测试店铺-->
<add key="ClientId" value="2"/>
<add key="ClientId" value="10"/>
<!--<add key="ApolloUri" value="http://10.2.1.21:28080"/>
<add key="OrderServiceUri" value="http://10.2.1.26:21527/order/"/>
<add key="StockServiceUri" value="http://10.2.1.26:21527/stock/"/>-->
@@ -34,16 +34,16 @@
<add key="OrderServiceUri" value="https://witt.black-pa.com/order/"/>
<add key="StockServiceUri" value="https://witt.black-pa.com/stock/"/>
<add key="DataVServiceUri" value="https://witt.black-pa.com/datav"/>
<add key="BroadcastPubTopic" value="/broadcast/grgpECHSL7q/Transit_SetDevice"/>
<add key="BroadcastPubTopic" value="/broadcast/grgpECHSL7q/Transit_SetDevice"/>

<!--阿里云上报启动方式:API 或者 LOCAL-->
<!--阿里云上报启动方式:API 或者 LOCAL-->
<!--API :通过客户端ID,调用接口查询“设备连接信息”-->
<!--LOCAL:直接使用下方本地“设备连接信息”-->
<add key="StartupMode" value="API"/>
<add key="ProductKey" value="grgpECHSL7q"/>
<add key="DeviceName" value="qsqd"/>
<add key="DeviceSecret" value="3c0f2390943bff4fece523af22655196"/>

<!--外设配置-->
<add key="COM_Coffee" value="COM3"/>


Loading…
Cancel
Save