From bfc932a6348457a022269ea993117c41cc051fe5 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期五, 29 八月 2025 17:47:35 +0800
Subject: [PATCH] 2025年08月29日17:47:33

---
 app/src/main/java/com/hdl/photovoltaic/other/HdlUniLogic.java |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/other/HdlUniLogic.java b/app/src/main/java/com/hdl/photovoltaic/other/HdlUniLogic.java
index a1c86b8..9ebe37d 100644
--- a/app/src/main/java/com/hdl/photovoltaic/other/HdlUniLogic.java
+++ b/app/src/main/java/com/hdl/photovoltaic/other/HdlUniLogic.java
@@ -1005,8 +1005,7 @@
      */
     private void uniGetDeviceFind(String type, Object data, String TopicApi, DCUniMPJSCallback callback) {
         String mac = getKeyValue("mac", getKeyValue("data", data));
-        JsonArray jsonArray = new JsonArray();
-        JsonObject jObject = null;
+        JsonObject jObject = new JsonObject();
         String attribute_data = getKeyValue("attribute_data", getKeyValue("data", data));
         if (!TextUtils.isEmpty(attribute_data)) {
             try {
@@ -1015,8 +1014,7 @@
                 jObject = new JsonObject();
             }
         }
-        jsonArray.add(jObject);
-        TcpClient.getInstance().sendDataToLinkGateway(mac, false, TopicApi, jsonArray, "", new HDLLinkCallBack() {
+        TcpClient.getInstance().sendDataToLinkGateway(mac, false, TopicApi, jObject, "", new HDLLinkCallBack() {
             @Override
             public void onSuccess(String s) {
                 if (callback != null) {

--
Gitblit v1.8.0