微调
This commit is contained in:
@@ -15,9 +15,10 @@ import java.io.Serializable;
|
||||
@Data
|
||||
public class AccessDto implements Serializable {
|
||||
|
||||
//fixme 自定义注解有问题,后期要调整
|
||||
@ParamName("Ndid")
|
||||
private String nDid;
|
||||
private String Ndid;
|
||||
|
||||
@ParamName("DevType")
|
||||
private String devType;
|
||||
private String DevType;
|
||||
}
|
||||
|
||||
@@ -357,7 +357,7 @@ public class MqttMessageHandler {
|
||||
ReqAndResDto.Res reqAndResParam = new ReqAndResDto.Res();
|
||||
HeartBeatDto heartBeatDto = new HeartBeatDto();
|
||||
heartBeatDto.setTime(System.currentTimeMillis()/1000);
|
||||
reqAndResParam.setMid(1);
|
||||
reqAndResParam.setMid(res.getMid());
|
||||
reqAndResParam.setDid(0);
|
||||
reqAndResParam.setPri(AccessEnum.FIRST_CHANNEL.getCode());
|
||||
reqAndResParam.setType(Integer.parseInt(TypeEnum.TYPE_29.getCode()));
|
||||
|
||||
@@ -373,7 +373,7 @@ public class CsDeviceServiceImpl implements ICsDeviceService {
|
||||
reqAndResParam.setType(Integer.parseInt(TypeEnum.TYPE_2.getCode()));
|
||||
reqAndResParam.setExpire(-1);
|
||||
AccessDto accessDto = new AccessDto();
|
||||
accessDto.setNDid(nDid);
|
||||
accessDto.setNdid(nDid);
|
||||
accessDto.setDevType(devType);
|
||||
reqAndResParam.setMsg(accessDto);
|
||||
publisher.send("/Pfm/DevReg/"+nDid, new Gson().toJson(reqAndResParam),1,false);
|
||||
|
||||
Reference in New Issue
Block a user