|
|
@@ -271,4 +271,17 @@ void CMessagePushWorker::HandelMessage(std::string msg)
|
|
|
//CPosPrinter printer;
|
|
|
//printer.PrintDiandanOrder(order_id);
|
|
|
}
|
|
|
+ else if (type == MESSAGE_TYPE::NEW_KUAICANSHANGJIAAPP_ORDER)
|
|
|
+ {
|
|
|
+ std::string order_id = document["waimai_order_id"].GetString();
|
|
|
+
|
|
|
+ //新订单来了,首先判断是否要语音提醒
|
|
|
+ if (CSetting::GetInstance()->GetParam("setting_is_new_diannei_voice") == "1")
|
|
|
+ {
|
|
|
+ CVoiceWorker::GetInstance()->AddVoice(5);
|
|
|
+ }
|
|
|
+
|
|
|
+ CPosPrinter printer;
|
|
|
+ printer.PrintDiandanOrder(order_id);
|
|
|
+ }
|
|
|
}
|