#update mqtt 上位机

This commit is contained in:
2026-08-17 11:49:33 +08:00
parent c3398c6c07
commit 80bfdd134d
9 changed files with 344 additions and 288 deletions

View File

@@ -23,4 +23,9 @@ public class NettySwitchDeviceDTO {
*/
private String userId;
/**
* 用户名
*/
private String token;
}

View File

@@ -400,6 +400,7 @@ public class ClientHandler extends ChannelInboundHandlerAdapter {
NettySwitchDeviceDTO dto = new NettySwitchDeviceDTO();
dto.setDeviceId(nettyClient.requestDeviceId);
dto.setPlatform("web");
dto.setToken(token);
String result = httpService.doPost(postUrl, token, dto);
ResultDTO resultDTO = JsonUtils.parseObject(result, ResultDTO.class);
if (resultDTO != null && resultDTO.getData() != null) {