zhangqian
2023-11-03 f008bf77342a93c13d1e42399dd175c9c941d3ef
api/v1/config.go
@@ -125,7 +125,7 @@
      return
   }
   params.DeviceID = conf.Conf.System.DeviceId
   params.DeviceID = conf.Conf.CurrentDeviceID
   if params.Method == constvar.PlcMethodModbusTCP && (params.Address == "" || params.Port == 0) {
      ctx.FailWithMsg(ecode.ParamsErr, "当接口方式为modbusTCP时,地址和端口号不能为空")
      return