[ENHANCE] IoT:在保存 Modbus 连接配置时,返回 500 系统错误,而不是受控错误码

作者: dadiyang创建于 2026年9月29日更新于 2026年9月29日
  • The correction suggestion is to replace the 6 "Assert.isTrue" and "Assert.notNull" in "validateModbusConfigByProtocolType" with a controlled business error code thrown by "ServiceExceptionUtil" (add the corresponding error code in "ErrorCodeConstants", such as "IP address cannot be empty" in the Client mode), and keep it consistent with the other checks in the iot module.

内容来源: YunaiV/ruoyi-vue-pro