提交修改设备更新时关联组态更新
This commit is contained in:
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user