|
|
|
@ -110,9 +110,9 @@ namespace SlnMesnac.Business
|
|
|
|
|
{
|
|
|
|
|
CameraHandler();
|
|
|
|
|
}
|
|
|
|
|
else //光电释放暂不使用
|
|
|
|
|
else //光电释放
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
lightHelper.SendData("CLOSE");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -203,9 +203,7 @@ namespace SlnMesnac.Business
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
//需要检测
|
|
|
|
|
//打开灯光
|
|
|
|
|
lightHelper.SendData("OPEN");
|
|
|
|
|
|
|
|
|
|
BarCodeModel barCodeModel = new BarCodeModel();
|
|
|
|
|
barCodeModel.BarCode = materialCodeStr;
|
|
|
|
|
barCodeModel.logoConfig = logoConfig;
|
|
|
|
@ -231,6 +229,10 @@ namespace SlnMesnac.Business
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
//需要检测
|
|
|
|
|
//打开灯光
|
|
|
|
|
lightHelper.SendData("OPEN");
|
|
|
|
|
|
|
|
|
|
logger.LogInformation("相机流程开始:");
|
|
|
|
|
//照片
|
|
|
|
|
byte[] ImageData = null;
|
|
|
|
|