Commit dc8423d3 authored by 刘林's avatar 刘林

fix(message):Message服务消息转发遥信添加dataType字段

parent 02175635
......@@ -58,6 +58,7 @@ public class KafkaConsumerService {
JSONObject data = messageObj.getJSONObject("body");
if (data.size() == 0){
data = messageObj;
data.put("datatype","state");
}
log.info("接收到Roma消息对象: {}", data);
emqKeeper.getMqttClient().publish(topic, data.toString().getBytes(StandardCharsets.UTF_8), 0, false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment