常量调整

V0.5.x
xiwa 2022-04-22 06:54:48 +08:00
parent c90bfbc685
commit 447e481111
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
package cc.iotkit.manager.controller.aligenie;
import cc.iotkit.common.Constants;
import cc.iotkit.common.exception.BizException;
import cc.iotkit.common.exception.OfflineException;
import cc.iotkit.common.utils.JsonUtil;
@ -65,7 +66,7 @@ public class AligenieDeviceController {
.serviceUrl(pulsarBrokerUrl)
.build();
deviceMessageProducer = client.newProducer(JSONSchema.of(ThingModelMessage.class))
.topic("persistent://iotkit/default/device_thing")
.topic("persistent://iotkit/default/" + Constants.THING_MODEL_MESSAGE_TOPIC)
.create();
}

View File

@ -51,7 +51,7 @@ public class DeviceBehaviourService {
.serviceUrl(serverConfig.getPulsarBrokerUrl())
.build();
deviceMessageProducer = client.newProducer(JSONSchema.of(ThingModelMessage.class))
.topic("persistent://iotkit/default/device_thing")
.topic("persistent://iotkit/default/" + Constants.THING_MODEL_MESSAGE_TOPIC)
.create();
}