2021与蓝度共同重构项目,服务端
fix
zhanzhiqin
2022-05-18 da602743da69e28a23601b1890bc43917fcd019a
ximon-admin/src/main/java/com/sandu/ximon/admin/service/VnnoxService.java
@@ -233,7 +233,7 @@
        }
        boolean belong = SpringContextHolder.getBean(PoleBindingService.class).isBelong(byId.getSn(), PoleBindingEnums.VONNOX);
        if (!belong) {
            throw new RuntimeException("该设备不属于您,不能修改设备信息");
            throw new BusinessException("该设备不属于您,不能修改设备信息");
        }
        LedPlayerEntity led = new LedPlayerEntity();
        led.setId(id);
@@ -302,6 +302,16 @@
        playerProgram.setPages(list);
        playerProgram.setNoticeUrl(VnnoxConstant.NOTIFY_URL);
        /**
         * 诺瓦推送大气数据 日志记录开始
////         */
//        String content = "{诺瓦playerId:" + playerId + ",节目内容:" + JSON.toJSONString(playerProgram) + " }";
//        StoreOperationRecordsUtils.storeOperationData(null, null, "大气数据推送到诺瓦", content);
        /**
         * 诺瓦推送大气数据 日志记录结束
         */
        return vnnoxProgramAPIUtil.normalProgram(playerProgram).getData();
    }
@@ -327,7 +337,7 @@
        }
        widgetList.add(new PlayerWidget().generateScrollUpTextWidget(
                "water",
                "weather",
                1,
                100000L,
                list,