提交修改设备更新时关联组态更新

This commit is contained in:
LEED
2025-07-13 17:05:39 +08:00
parent ac40c5e5ec
commit 4c1521bda0
9 changed files with 50 additions and 14 deletions

View File

@@ -105,15 +105,15 @@ public class AuthService {
log.warn("=>设备端认证失败");
throw new ServiceException("设备端认证失败:" + response.getBody());
}
}else if (clientId.startsWith("8")) {
// 设备端认证
ResponseEntity response = toolService.clientAuthNoClient(clientId, username, password);
if (response.getStatusCodeValue() == HttpStatus.OK.value()) {
return true;
} else {
log.warn("=>设备端认证失败");
throw new ServiceException("设备端认证失败:" + response.getBody());
}
// }else if (clientId.startsWith("8")) {
// // 设备端认证
// ResponseEntity response = toolService.clientAuthNoClient(clientId, username, password);
// if (response.getStatusCodeValue() == HttpStatus.OK.value()) {
// return true;
// } else {
// log.warn("=>设备端认证失败");
// throw new ServiceException("设备端认证失败:" + response.getBody());
// }
} else {
Product product = productService.selectProductByProductId(147L);
if (!username.equals(product.getMqttAccount()) && !password.equals(product.getMqttPassword())) {