提交修改
This commit is contained in:
@@ -136,6 +136,7 @@ public class MqttPublish implements MqttHandler {
|
||||
reportBo.setReportType(1);
|
||||
}
|
||||
// 规则引擎脚本处理,完成后返回结果
|
||||
// MsgContext context = ruleProcess.processRuleScript(topicsUtils.parseSerialNumber(topicName), 1, topicName, new String(source));
|
||||
MsgContext context;
|
||||
if (topicName.startsWith(TopicType.PROPERTY_XINDA_DEV.getTopicSuffix())) {
|
||||
context = ruleProcess.processNoRuleScript(topicsUtils.parseNewSerialNumber(topicName), 1, topicName, new String(source));
|
||||
|
||||
@@ -136,7 +136,8 @@ public class MqttMessagePublishImpl implements IMqttMessagePublish {
|
||||
switch (serverType) {
|
||||
case MQTT:
|
||||
// 规则引擎脚本处理,完成后返回结果
|
||||
MsgContext context;
|
||||
// MsgContext context = ruleProcess.processRuleScript(serialNumber, 2, backBo.getTopicName(), new String(backBo.getMessage()));
|
||||
MsgContext context;
|
||||
if (backBo.getTopicName().startsWith(TopicType.PROPERTY_XINDA_DEV.getTopicSuffix())) {
|
||||
context = ruleProcess.processNoRuleScript(serialNumber, 2, backBo.getTopicName(), new String(backBo.getMessage()));
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user