From eeb5403e0192881d704daf8b26c76ac92ecb7148 Mon Sep 17 00:00:00 2001 From: liufei <296528480@qq.com> Date: Sun, 10 Oct 2021 16:24:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- POSCorePrint/Jobs/PrintJob.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/POSCorePrint/Jobs/PrintJob.cs b/POSCorePrint/Jobs/PrintJob.cs index b8b00f7..8ca6def 100644 --- a/POSCorePrint/Jobs/PrintJob.cs +++ b/POSCorePrint/Jobs/PrintJob.cs @@ -22,7 +22,7 @@ namespace POSCorePrint.Jobs public class PrintJob : IJob { private readonly ManualResetEvent TimeoutObject = new ManualResetEvent(false); - private int Timeout = 1500;//连接打印机超时时间,毫秒。 + private int Timeout = 2500;//连接打印机超时时间,毫秒。 private int TimeoutSend = 5000;//连接打印机超时时间,毫秒。 public Task Execute(IJobExecutionContext context) @@ -105,7 +105,7 @@ namespace POSCorePrint.Jobs Console.WriteLine($"{DateTime.Now.ToString()}: 打印失败:{p.Key} socket【连接超时】"); return; } -{ foreach (Content content in p.Value) + foreach (Content content in p.Value) { ////判断打印机状态:是否在线,是否有纸 //byte[] dataSatus = new byte[3];