liuwf 1 week ago
parent 54a0ad12d7
commit bd87a15ddb

@ -89,8 +89,9 @@ namespace PrintBarCode
try try
{ {
string channelWork = $"print_{debugConfig.IP}"; string channelWork = $"print_{debugConfig.IP}";
string jsonString = _redisHandler.ConsumeMessageFromWorker(channelWork); // string jsonString = _redisHandler.ConsumeMessageFromWorker(channelWork);
// string jsonString = "{\"template\":\"small\",\"printContent\":\"[{\\\"text\\\":\\\"李华\\\",\\\"qrcode\\\":\\\"12001\\\"}]\"}"; 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)) if (!string.IsNullOrEmpty(jsonString))
{ {
IsPrintBlank = 1; IsPrintBlank = 1;

Loading…
Cancel
Save