|
@@ -163,7 +163,7 @@ public class GateWayInfoService extends SuperService {
|
|
|
if (checkIdContent.isFailed()) {
|
|
if (checkIdContent.isFailed()) {
|
|
|
return ResultContent.buildFail(checkIdContent.getMsg());
|
|
return ResultContent.buildFail(checkIdContent.getMsg());
|
|
|
}
|
|
}
|
|
|
- ResultContent checkNameContent = JMXUtil.checkDeviceIdLength(param.getGateWayName(), "gateWayName");
|
|
|
|
|
|
|
+ ResultContent checkNameContent = JMXUtil.checkDeviceNameLength(param.getGateWayName(), "gateWayName");
|
|
|
if (checkNameContent.isFailed()) {
|
|
if (checkNameContent.isFailed()) {
|
|
|
return ResultContent.buildFail(checkNameContent.getMsg());
|
|
return ResultContent.buildFail(checkNameContent.getMsg());
|
|
|
}
|
|
}
|
|
@@ -277,7 +277,7 @@ public class GateWayInfoService extends SuperService {
|
|
|
if (checkIdContent.isFailed()) {
|
|
if (checkIdContent.isFailed()) {
|
|
|
return ResultContent.buildFail(checkIdContent.getMsg());
|
|
return ResultContent.buildFail(checkIdContent.getMsg());
|
|
|
}
|
|
}
|
|
|
- ResultContent checkNameContent = JMXUtil.checkDeviceIdLength(param.getDeviceName(), "deviceName");
|
|
|
|
|
|
|
+ ResultContent checkNameContent = JMXUtil.checkDeviceNameLength(param.getDeviceName(), "deviceName");
|
|
|
if (checkNameContent.isFailed()) {
|
|
if (checkNameContent.isFailed()) {
|
|
|
return ResultContent.buildFail(checkNameContent.getMsg());
|
|
return ResultContent.buildFail(checkNameContent.getMsg());
|
|
|
}
|
|
}
|
|
@@ -361,8 +361,6 @@ public class GateWayInfoService extends SuperService {
|
|
|
// 更新网关的权限
|
|
// 更新网关的权限
|
|
|
jmxSyncService.syncSecurityToMQTTService(gateWayInfo);
|
|
jmxSyncService.syncSecurityToMQTTService(gateWayInfo);
|
|
|
log.info("设备注册成功:{}", deviceInfos.size());
|
|
log.info("设备注册成功:{}", deviceInfos.size());
|
|
|
- // 同步设备
|
|
|
|
|
- deviceSyncFullCardService.noticeSyncDevice(deviceInfos);
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
return ResultContent.buildSuccess();
|
|
return ResultContent.buildSuccess();
|