From 6ae9f81d545f44a85c34dea1c11df8b70e3f940f Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期三, 09 四月 2025 10:29:29 +0800
Subject: [PATCH] 2025-04-09 10:29:16 1.1.0

---
 app/src/main/java/com/hdl/photovoltaic/ui/CPowerStationActivity.java |   26 +++++++++++---------------
 1 files changed, 11 insertions(+), 15 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/ui/CPowerStationActivity.java b/app/src/main/java/com/hdl/photovoltaic/ui/CPowerStationActivity.java
index e1a886b..9dcfb51 100644
--- a/app/src/main/java/com/hdl/photovoltaic/ui/CPowerStationActivity.java
+++ b/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")) {
-//                        //璁惧鐘舵�佸彉鏇磘opic锛�/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")) {
+                        //璁惧鐘舵�佸彉鏇磘opic锛�/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);
                     }
 
                 }

--
Gitblit v1.8.0