Commit a90bd316bbec3cbaf7570e343bce7049057cca14

Authored by xp.Huang
2 parents a72a1ff3 d3595d5b

Merge branch 'ww-dev' into 'main'

fix: 修复数据流转Kafka属性保存类型错误

See merge request yunteng/thingskit-front!519
@@ -269,7 +269,6 @@ @@ -269,7 +269,6 @@
269 const type = Reflect.get(record, 'type'); 269 const type = Reflect.get(record, 'type');
270 const configuration = Reflect.get(record, 'configuration'); 270 const configuration = Reflect.get(record, 'configuration');
271 const clientProperties = Reflect.get(configuration, 'clientProperties'); 271 const clientProperties = Reflect.get(configuration, 'clientProperties');
272 - console.log(clientProperties);  
273 !clientProperties && (record.configuration.clientProperties = {}); 272 !clientProperties && (record.configuration.clientProperties = {});
274 273
275 if ( 274 if (
@@ -281,7 +280,9 @@ @@ -281,7 +280,9 @@
281 } 280 }
282 281
283 if (type === 'org.thingsboard.rule.engine.kafka.TbKafkaNode') { 282 if (type === 'org.thingsboard.rule.engine.kafka.TbKafkaNode') {
  283 + const otherProperties = Reflect.get(configuration, 'otherProperties');
284 configuration.kafkaHeadersCharset = 'UTF-8'; 284 configuration.kafkaHeadersCharset = 'UTF-8';
  285 + !otherProperties && (record.configuration.otherProperties = {});
285 } 286 }
286 287
287 if (type === 'org.thingsboard.rule.engine.rabbitmq.TbRabbitMqNode') { 288 if (type === 'org.thingsboard.rule.engine.rabbitmq.TbRabbitMqNode') {