wjc
2025-04-11 1a08f52ec36e3b71204a23a8813fe50f1748b277
app/src/main/java/com/hdl/photovoltaic/ui/CPowerStationActivity.java
@@ -236,7 +236,7 @@
        }
        UserConfigManage.getInstance().setUniBottomSafeDistanceBackgroundColor(0);
        List<HouseIdBean> HouseIdList = HdlResidenceLogic.getInstance().getHouseIdList();
        if (HouseIdList.size() == 0) {
        if (HouseIdList.isEmpty()) {
            if (TextUtils.isEmpty(UserConfigManage.getInstance().getHomeId())) {
                String path = HDLUniMP.UNI_EVENT_OPEN_HOME_Null_C;
                HdlUniLogic.getInstance().openUniMP(path, null);
@@ -452,20 +452,16 @@
                        }
                    }
                    else if (linkResponse.getTopic().endsWith("/app/thing/property/send")) {
//                        //设备状态变更topic:/user/${homeId}/app/thing/property/send
//                        if (linkResponse.getData() == null) {
//                            HdlLogLogic.print("设备状态变更--->数据为空", false);
//                            return;
//                        }
//                        try {
//                            Gson gson = new Gson();
//                            Type typeOfT = new TypeToken<List<OidBean>>() {
//                            }.getType();
//                            String json = gson.toJson(linkResponse.getData());
//                        } catch (Exception ignored) {
//                        }
                    } else if (linkResponse.getTopic().endsWith("/app/thing/property/send")) {
                        //设备状态变更topic:/user/${homeId}/app/thing/property/send
                        if (linkResponse.getData() == null) {
                            HdlLogLogic.print("设备状态变更--->数据为空", false);
                            return;
                        }
                        HDLUniMP.UniCallBackBaseBean uniCallBackBaseBean = new HDLUniMP.UniCallBackBaseBean();
                        uniCallBackBaseBean.setType(linkResponse.getTopic());
                        uniCallBackBaseBean.setData(linkResponse.getData());
                        HdlUniLogic.getInstance().sendUni(HDLUniMP.UNI_EVENT_NOTIFICATION_DEVICE_MODEL, uniCallBackBaseBean);
                    }
                }