From a072572e098e4d5b4f0bcba87355ad032e6b0818 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期六, 03 二月 2024 10:23:41 +0800
Subject: [PATCH] 2024年02月03日10:23:29

---
 HDLLinkLocalSdk/src/main/java/com/hdl/sdk/link/core/connect/HDLUdpConnect.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/HDLLinkLocalSdk/src/main/java/com/hdl/sdk/link/core/connect/HDLUdpConnect.java b/HDLLinkLocalSdk/src/main/java/com/hdl/sdk/link/core/connect/HDLUdpConnect.java
index 92e3dde..8bcbcb0 100644
--- a/HDLLinkLocalSdk/src/main/java/com/hdl/sdk/link/core/connect/HDLUdpConnect.java
+++ b/HDLLinkLocalSdk/src/main/java/com/hdl/sdk/link/core/connect/HDLUdpConnect.java
@@ -508,8 +508,8 @@
                             }.getType());
                             GatewayBean gateway = response.getObjects();
                             if (gateway != null) {
-                                if (!TextUtils.isEmpty(HDLLinkConfig.getInstance().getGatewayId())
-                                        && !TextUtils.isEmpty(HDLLinkConfig.getInstance().getHomeId())) {
+                                if (!TextUtils.isEmpty(gateway.getGatewayId())
+                                        && !TextUtils.isEmpty(gateway.getHomeId())) {
                                     //涓荤綉鍏冲苟涓旀槸褰撳墠缁戝畾鐨勭綉鍏�
                                     if ("true".equals(gateway.getMaster().toLowerCase())) {
                                         if (gateway.getGatewayId().equals(HDLLinkConfig.getInstance().getGatewayId())

--
Gitblit v1.8.0