Browse Source

修改BUG

master
liufei 3 years ago
parent
commit
eeb5403e01
  1. 4
      POSCorePrint/Jobs/PrintJob.cs

4
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];

Loading…
Cancel
Save