change-条码绑定修改

dev
liuwf 10 months ago
parent dea0a90a12
commit 355e686a9f

@ -30,7 +30,7 @@ namespace Admin.Core.Extensions
catch (Exception e) catch (Exception e)
{ {
log.Error($"An error was reported when starting the job service.\n{e.Message}"); log.Error($"An error was reported when starting the job service.\n{e.Message}");
throw; //throw;
} }
} }
} }

@ -59,12 +59,15 @@ namespace Aucma.Core.CodeBinding.ViewModels
timer.Interval = TimeSpan.FromSeconds(1); timer.Interval = TimeSpan.FromSeconds(1);
timer.Tick += Timer_Tick; timer.Tick += Timer_Tick;
timer.Start(); timer.Start();
Scanner1State(false);
Scanner2State(false);
// Job_AllState_Quartz.RefreshStateEvent += RefreshStatus; // Job_AllState_Quartz.RefreshStateEvent += RefreshStatus;
// MvCodeHelper.RefreshStateEvent += RefreshScanner; // MvCodeHelper.RefreshStateEvent += RefreshScanner;
TouchSocketService.RefreshStateEvent += RefreshScanner; TouchSocketService.RefreshStateEvent += RefreshScanner;
// InitHikRobot(); GunBusiness.InstanceSerialPort3();
// InitHikRobot();
} }
#region 开启海康扫码器 #region 开启海康扫码器
@ -103,7 +106,6 @@ namespace Aucma.Core.CodeBinding.ViewModels
GunBusiness.InstanceSerialPort3();
Business.MvCodeHelper.Liner(); Business.MvCodeHelper.Liner();
}); });
@ -126,7 +128,7 @@ namespace Aucma.Core.CodeBinding.ViewModels
if (ip == SnScannerIp) if (ip == SnScannerIp)
{ {
Scanner1State(flag); ; Scanner1State(flag);
} }
else if (ip == MesScannerIp) else if (ip == MesScannerIp)
{ {

@ -197,7 +197,7 @@
}, },
"TouchSocket": { "TouchSocket": {
"Enabled": true, "Enabled": true,
"Address": "10.10.92.123:5000" "Address": "10.10.92.139:5000"
} }
}, },
"ScannerServer": [ "ScannerServer": [

Loading…
Cancel
Save