wjc
2025-03-28 e440aef4e5d8e4963cbc8e93a7d503c3f46e7636
app/src/main/java/com/hdl/photovoltaic/ui/CPowerStationActivity.java
@@ -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;
                    }
                    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) {
//                        }
                        HDLUniMP.UniCallBackBaseBean uniCallBackBaseBean = new HDLUniMP.UniCallBackBaseBean();
                        uniCallBackBaseBean.setType(linkResponse.getTopic());
                        uniCallBackBaseBean.setData(linkResponse.getData());
                        HdlUniLogic.getInstance().sendUni(HDLUniMP.UNI_EVENT_NOTIFICATION_DEVICE_MODEL, uniCallBackBaseBean);
                    }
                }