退菜单 播放 云想印

This commit is contained in:
2026-04-21 10:18:42 +08:00
parent 7445130611
commit 5cd729f4f7

View File

@@ -208,6 +208,9 @@ public class YxyPrinter extends PrinterHandler implements PrinterImpl {
String voiceJson = "{\"bizType\":\"2\",\"content\":\"\"}";
if (1 == machine.getVolumeSwitch()) {
voiceJson = "{\"bizType\":\"2\",\"content\":\"您有一笔新的订单,请及时处理\"}";
if ("退菜单".equals(bizType) || "退款单".equals(bizType)) {
voiceJson = "{\"bizType\":\"2\",\"content\":\"有客人退菜了,请注意查看\"}";
}
}
String resp = sendPrintRequest(machine.getAddress(), data, voiceJson, machine.getPrintNum() == null ? "1" : machine.getPrintNum().toString());
printMachineLogService.save(orderId, machine, bizType, data, resp);