From e440aef4e5d8e4963cbc8e93a7d503c3f46e7636 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期五, 28 三月 2025 17:30:12 +0800
Subject: [PATCH] 2025年03月28日17:30:08

---
 app/src/main/java/com/hdl/photovoltaic/ui/BPowerStationActivity.java |   23 ++++++++++-------------
 1 files changed, 10 insertions(+), 13 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/ui/BPowerStationActivity.java b/app/src/main/java/com/hdl/photovoltaic/ui/BPowerStationActivity.java
index 020b802..bfa90f6 100644
--- a/app/src/main/java/com/hdl/photovoltaic/ui/BPowerStationActivity.java
+++ b/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")) {
-//                        //璁惧鐘舵�佸彉鏇磘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