| | |
| | | @Override |
| | | public DevicePlcVO.OperationResult execute(DeviceConfig deviceConfig, String operation, Map<String, Object> params) { |
| | | try { |
| | | // 记录参数信息(用于调试) |
| | | if (params != null) { |
| | | log.debug("BaseDeviceLogicHandler.execute接收参数: deviceId={}, operation={}, paramsKeys={}, params={}", |
| | | deviceConfig.getId(), operation, params.keySet(), params); |
| | | } else { |
| | | log.warn("BaseDeviceLogicHandler.execute接收参数为null: deviceId={}, operation={}", |
| | | deviceConfig.getId(), operation); |
| | | } |
| | | |
| | | // 验证设备配置 |
| | | String validationError = validateLogicParams(deviceConfig); |
| | | if (validationError != null) { |