添加报警窗口

出库流程调试、优化
This commit is contained in:
hehaibing-1996
2024-05-05 16:57:20 +08:00
parent d283924ae1
commit 311a695498
44 changed files with 2272 additions and 307 deletions

View File

@ -12,6 +12,8 @@ namespace WCS.BLL.Manager
public static class WebSoceketManager
{
public static HttpService service;
public static object flag = new object();
public static void InitWebSocket()
{
service = new HttpService();
@ -40,7 +42,10 @@ namespace WCS.BLL.Manager
var clients = service.GetClients().Where(t => t.IP == IpAddress).ToList();
foreach (var client in clients)
{
client.WebSocket.SendAsync(Message);
lock (client)
{
client.WebSocket.Send(Message);
}
}
}
catch (Exception ex)