first commit
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
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;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user