wjc
2025-03-28 e440aef4e5d8e4963cbc8e93a7d503c3f46e7636
app/src/main/java/com/hdl/photovoltaic/ui/BPowerStationActivity.java
@@ -566,19 +566,16 @@
                        uniCallBackBaseBean.setData(topicArray[1]);
                        HdlUniLogic.getInstance().sendUni(HDLUniMP.UNI_EVENT_NOTIFICATION_DEVICE_MODEL, uniCallBackBaseBean);
                        HdlLogLogic.print(linkResponse.getTopic() + new Gson().toJson(linkResponse.getData()), true);
                    }   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);
                    }
                }
            }