From bd87a15ddb427c9a092079c296a782b126b0304c Mon Sep 17 00:00:00 2001 From: liuwf Date: Thu, 7 Nov 2024 19:06:44 +0800 Subject: [PATCH] . --- PrintBarCode/MessageClient.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PrintBarCode/MessageClient.cs b/PrintBarCode/MessageClient.cs index fe59cae..4ba83d2 100644 --- a/PrintBarCode/MessageClient.cs +++ b/PrintBarCode/MessageClient.cs @@ -89,8 +89,9 @@ namespace PrintBarCode try { string channelWork = $"print_{debugConfig.IP}"; - string jsonString = _redisHandler.ConsumeMessageFromWorker(channelWork); - // string jsonString = "{\"template\":\"small\",\"printContent\":\"[{\\\"text\\\":\\\"李华\\\",\\\"qrcode\\\":\\\"12001\\\"}]\"}"; + // string jsonString = _redisHandler.ConsumeMessageFromWorker(channelWork); + string jsonString = "{\"template\":\"small\",\"printContent\":\"[{\\\"text\\\":\\\"test\\\",\\\"qrcode\\\":\\\"12001\\\"}]\"}"; + // string jsonString = "{\"template\":\"raw\",\"printContent\":\"[{\\\"saleOrderCode\\\":\\\"\\\",\\\"materialName\\\":\\\"Mater\\\",\\\"poNo\\\":\\\"CGDD000236\\\",\\\"qrcode\\\":\\\"20241105161452RB001\\\",\\\"batchCode\\\":\\\"D20241105PCGDD000236\\\",\\\"materialSpec\\\":\\\"\\\",\\\"materialCode\\\":\\\"MES.MC.A00044\\\",\\\"barcode\\\":\\\"20241105161452RB001\\\"}]\"}"; if (!string.IsNullOrEmpty(jsonString)) { IsPrintBlank = 1;