1
yanjinhui
2025-04-24 8db249119bebea55b11d454ef7bc5939fe0b1bc8
ÏîÄ¿´úÂë/WIDESEAWCS_Server Õýʽ/SerialPortService/PutakeServer.cs
@@ -270,16 +270,16 @@
                if (otherDevice == null) return new WebResponseContent { Status = false, Message = "未连接" };
                if (group=="电气")
                {
                    var values = otherDevice.Communicator.Read<bool>("M27");
                    var values = otherDevice.Communicator.Write< bool > ("M27",true);
                }
                if(group=="机械")
                {
                    var values = otherDevice.Communicator.Read<bool>("M29");
                    var values = otherDevice.Communicator.Write<bool>("M29", true);
                }
                if (group == "地沟")
                {
                    var values = otherDevice.Communicator.Read<bool>("M31");
                    var values2 = otherDevice.Communicator.Read<bool>("M33");
                    var values = otherDevice.Communicator.Write<bool>("M31", true);
                    var values2 = otherDevice.Communicator.Write<bool>("M33", true);
                }
                return new WebResponseContent { Status = true,Message=$"{group}组开门成功" };
            }
@@ -297,16 +297,16 @@
                if (otherDevice == null) return new WebResponseContent { Status = false, Message = "未连接" };
                if (group == "电气")
                {
                    var values = otherDevice.Communicator.Read<bool>("M28");
                    var values = otherDevice.Communicator.Write<bool>("M28", false);
                }
                if (group == "机械")
                {
                    var values = otherDevice.Communicator.Read<bool>("M30");
                    var values = otherDevice.Communicator.Write<bool>("M30",false);
                }
                if (group == "地沟")
                {
                    var values = otherDevice.Communicator.Read<bool>("M32");
                    var values2 = otherDevice.Communicator.Read<bool>("M34");
                    var values = otherDevice.Communicator.Write<bool>("M32", false);
                    var values2 = otherDevice.Communicator.Write<bool>("M34", false);
                }
                return new WebResponseContent { Status = true, Message = $"{group}组关门成功" };