Commit 6a1d7fb9 by 111-PC\111

[+]失败消息错误信息推送

1 parent 9a103f14
......@@ -188,7 +188,6 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
// 下发指令
List<SmartSceneData> orders = smartTemplateParamList.stream().filter(index -> index.getParamKey().equals("scene_content_device")).collect(Collectors.toList());
if (CollectionUtils.isEmpty(orders)) {
log.info("未查到该场景id的指令{}", scene.getId());
} else {
try {
......@@ -368,6 +367,7 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
private boolean repeatNotification(Long id) {
String key="senceId_"+id;
Object o = redisService.get(key);
log.info("{}从redis查询出来的数据为{}",key,o.toString());
if(o==null){
redisService.setOutTime(key,key,infotimeout, TimeUnit.MINUTES);
return false;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!