From c293e3d12571958f7ae7f28260ad3914842ecaa9 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期五, 12 一月 2024 11:07:40 +0800
Subject: [PATCH] 2024年01月12日11:06:47

---
 app/src/main/java/com/hdl/photovoltaic/ui/MyPowerStationActivity.java |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/ui/MyPowerStationActivity.java b/app/src/main/java/com/hdl/photovoltaic/ui/MyPowerStationActivity.java
index b1b4e18..96b822e 100644
--- a/app/src/main/java/com/hdl/photovoltaic/ui/MyPowerStationActivity.java
+++ b/app/src/main/java/com/hdl/photovoltaic/ui/MyPowerStationActivity.java
@@ -15,6 +15,7 @@
 import android.text.TextUtils;
 import android.view.View;
 
+import com.alibaba.fastjson.JSONObject;
 import com.google.gson.Gson;
 import com.google.gson.reflect.TypeToken;
 import com.hdl.linkpm.sdk.core.exception.HDLException;
@@ -331,8 +332,16 @@
                     HDLUniMP.UniCallBackBaseBean uniCallBackBaseBean = new HDLUniMP.UniCallBackBaseBean();
                     uniCallBackBaseBean.setType(response.getTopic());
                     uniCallBackBaseBean.setData(response.getData());
+//                    if (com.hdl.photovoltaic.ui.test.UniAppMqtt.getInstance().getUni()) {
+//                        try {
+//                            String t = String.format("AndroidToPC/%s/%s", System.currentTimeMillis(), HDLUniMP.UNI_EVENT_NOTIFICATION_DEVICE_MODEL);
+//                            com.hdl.photovoltaic.ui.test.UniAppMqtt.getInstance().publish(t, JSONObject.toJSON(uniCallBackBaseBean).toString());
+//                        } catch (Exception ignored) {
+//                        }
+//                    } else {
                     HdlUniLogic.getInstance().sendUni(HDLUniMP.UNI_EVENT_NOTIFICATION_DEVICE_MODEL, uniCallBackBaseBean);
 //                    }
+//                    }
 
                 } else if (msg instanceof LinkResponse) {
                     LinkResponse linkResponse = (LinkResponse) msg;

--
Gitblit v1.8.0