30 lines
847 B
C#
30 lines
847 B
C#
using JSMachine.WMS.Infrastructure.Helper;
|
|||
|
|
using JSMachine.WMS.Netty.NettyAsClient.Command;
|
||
|
|
using System;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using System.Linq;
|
||
|
|
using System.Text;
|
||
|
|
using static System.Console;
|
||
|
|
using System.Threading.Tasks;
|
||
|
|
|
||
|
|
namespace JSMachine.WMS.Netty.NettyAsClient.CommandHandler
|
||
|
|
{
|
||
|
|
public class BarCodeReadExceptionCmdHandler : BaseCmdhandler
|
||
|
|
{
|
||
|
|
public async override Task<bool> Handle(BaseCmd msg)
|
||
|
|
{
|
||
|
|
return await Task.Run(() =>
|
||
|
|
{
|
||
|
|
if (msg is BarCodeReadExceptionCmd barCodeReadExceptionCmd)
|
||
|
|
{
|
||
|
|
LogHelper.Warn($"相机【{base.RemoteIPInfo.IP}】条码读取失败,返回信息 {barCodeReadExceptionCmd.Msg}");
|
||
|
|
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
return false;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|