public bool SetSuperPwds(Controller controller, int doorIndex, List <string> pwds) { WGPacket packet = new WGPacket(0x8C); packet.SetDevSn(controller.sn); packet.SetDoorNum(doorIndex); try { packet.SetSuperPwds(pwds); } catch (Exception ex) { log.Error("密码转换发生异常:", ex); return(false); } DoSend(packet, controller.ip, controller.port); List <WGPacket> packets = WGRecievePacketAddClose(1); if (packets.Count == 1) { return(packets[0].data[0] == 1); } return(false); }