From 54154f0e7f4d27212fb1d3fd18812f297bc5c02e Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期四, 26 三月 2026 10:00:35 +0800
Subject: [PATCH] 2026年03月26日10:00:18 加上界面脚本

---
 app/src/main/java/com/hdl/photovoltaic/other/HdlUniLogic.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 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 578f42a..76f8c2f 100644
--- a/app/src/main/java/com/hdl/photovoltaic/other/HdlUniLogic.java
+++ b/app/src/main/java/com/hdl/photovoltaic/other/HdlUniLogic.java
@@ -42,6 +42,7 @@
 import com.hdl.photovoltaic.config.AppConfigManage;
 import com.hdl.photovoltaic.config.UserConfigManage;
 import com.hdl.photovoltaic.enums.LogoutType;
+import com.hdl.photovoltaic.enums.PowerStationType;
 import com.hdl.photovoltaic.internet.HttpClient;
 import com.hdl.photovoltaic.internet.HttpServer.MyNanoHttpServer;
 import com.hdl.photovoltaic.internet.TcpClient;
@@ -2787,8 +2788,13 @@
      */
     private void uniGetCurrentHomeLocalAndCloudGatewayList(String type, Object data, DCUniMPJSCallback callback) {
         String homeId = getKeyValue("homeId", getKeyValue("data", data));
+        String plantType = getKeyValue("plantType", getKeyValue("data", data));
+        if (plantType.equals("bms")) {
+            plantType = PowerStationType.BMS;
+        }
+//        plantType = PowerStationType.BMS;//妯℃嫙娴嬭瘯
 //        UserConfigManage.getInstance().setHomeId(homeId);
-        HdlDeviceLogic.getInstance().getCurrentHomeLocalAndCloudGatewayList(homeId, new CloudCallBeak<List<GatewayBean>>() {
+        HdlDeviceLogic.getInstance().getCurrentHomeLocalAndCloudGatewayList(homeId, plantType, new CloudCallBeak<List<GatewayBean>>() {
             @Override
             public void onSuccess(List<GatewayBean> list) {
                 List<GatewayBean> newList = sortLogic(list);

--
Gitblit v1.8.0