|
@@ -30,7 +30,7 @@ public class OnLineTopic implements PlatformTopic {
|
|
|
@ExecuteAnnotationServiceMethod(value = "online", remark = "上线")
|
|
@ExecuteAnnotationServiceMethod(value = "online", remark = "上线")
|
|
|
@Override
|
|
@Override
|
|
|
public ResultContent<Object> action(String topic, String message) {
|
|
public ResultContent<Object> action(String topic, String message) {
|
|
|
- log.info("online");
|
|
|
|
|
|
|
+ log.info("platform online");
|
|
|
DeviceOnLineParam param = null;
|
|
DeviceOnLineParam param = null;
|
|
|
if (StringUtils.isNotEmpty(message)) {
|
|
if (StringUtils.isNotEmpty(message)) {
|
|
|
param = JSONUtil.toBean(message, DeviceOnLineParam.class);
|
|
param = JSONUtil.toBean(message, DeviceOnLineParam.class);
|
|
@@ -40,7 +40,6 @@ public class OnLineTopic implements PlatformTopic {
|
|
|
result.setOperator(param.getOperator());
|
|
result.setOperator(param.getOperator());
|
|
|
result.setSuccess();
|
|
result.setSuccess();
|
|
|
result.setDeviceId(param.getDeviceId());
|
|
result.setDeviceId(param.getDeviceId());
|
|
|
- result.setMqttDataId(param.getMqttDataId());
|
|
|
|
|
result.setGateWayId(param.getGateWayId());
|
|
result.setGateWayId(param.getGateWayId());
|
|
|
result.setTime(DateUtils.paresTime(System.currentTimeMillis(), DateUtils.FORMAT_LONG));
|
|
result.setTime(DateUtils.paresTime(System.currentTimeMillis(), DateUtils.FORMAT_LONG));
|
|
|
result.setInfo(param.getInfo());
|
|
result.setInfo(param.getInfo());
|