|
@@ -53,6 +53,7 @@ namespace HBLConsole.MORKIC |
|
|
private bool enableFunny = false; |
|
|
private bool enableFunny = false; |
|
|
private DateTime lastRecvdOrder = DateTime.Now; |
|
|
private DateTime lastRecvdOrder = DateTime.Now; |
|
|
private bool working = false; |
|
|
private bool working = false; |
|
|
|
|
|
private bool IceIsOK = true; |
|
|
|
|
|
|
|
|
public void ConnectOk() |
|
|
public void ConnectOk() |
|
|
{ |
|
|
{ |
|
@@ -176,10 +177,13 @@ namespace HBLConsole.MORKIC |
|
|
{ |
|
|
{ |
|
|
if (LebaiHelper.GetInstance.GetInput(3)) |
|
|
if (LebaiHelper.GetInstance.GetInput(3)) |
|
|
{ |
|
|
{ |
|
|
MessageLog.GetInstance.Show("请擦拭冰淇淋机出口"); |
|
|
|
|
|
|
|
|
if(IceIsOK) MessageLog.GetInstance.Show("请擦拭冰淇淋机出口"); |
|
|
|
|
|
IceIsOK = false; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
else if(morkOrderPushesIceCream.TryDequeue(out SimOrderData order)) |
|
|
else if(morkOrderPushesIceCream.TryDequeue(out SimOrderData order)) |
|
|
{ |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
IceIsOK = true; |
|
|
MessageLog.GetInstance.Show($"开始制作 [冰淇淋] 订单[{order.morkOrder.SortNum}]"); |
|
|
MessageLog.GetInstance.Show($"开始制作 [冰淇淋] 订单[{order.morkOrder.SortNum}]"); |
|
|
DoIceCream(order); |
|
|
DoIceCream(order); |
|
|
} |
|
|
} |
|
|