From 516f68195c0b50438088803e60240c7b90019cb4 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期六, 03 二月 2024 18:28:07 +0800
Subject: [PATCH] 备份代码

---
 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