#update mqtt 上位机
This commit is contained in:
@@ -23,4 +23,9 @@ public class NettySwitchDeviceDTO {
|
||||
*/
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
private String token;
|
||||
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user