模板解析功能提交
This commit is contained in:
@@ -108,6 +108,8 @@ public class MqttMessageHandler {
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void devOperation(String topic, MqttMessage message, @NamedValue("edgeId") String nDid, @Payload String payload){
|
||||
log.info("收到注册应答响应--->" + nDid);
|
||||
//这边用redis缓存来判断是否接收响应
|
||||
redisUtil.saveByKeyWithExpire(nDid,true,5L);
|
||||
Gson gson = new Gson();
|
||||
ReqAndResParam.Res res = gson.fromJson(new String(message.getPayload(), StandardCharsets.UTF_8), ReqAndResParam.Res.class);
|
||||
//检验传递的参数是否准确
|
||||
|
||||
Reference in New Issue
Block a user