From c274b6508fdc8ebf872b6c02febfefe14c0ee4fa Mon Sep 17 00:00:00 2001 From: tanghc Date: Thu, 8 Aug 2019 10:57:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gitee/sop/gatewaycommon/manager/DefaultEnvGrayManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/manager/DefaultEnvGrayManager.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/manager/DefaultEnvGrayManager.java index 3fa8561f..bdfc8760 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/manager/DefaultEnvGrayManager.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/manager/DefaultEnvGrayManager.java @@ -40,7 +40,7 @@ public class DefaultEnvGrayManager implements EnvGrayManager { if (serviceId == null || nameVersion == null) { return null; } - boolean opened = instanceIdServiceIdMap.values().contains(serviceId); + boolean opened = instanceIdServiceIdMap.containsValue(serviceId); // 没有开启灰度 if (!opened) { return null;