Showing
1 changed file
with
6 additions
and
1 deletions
@@ -317,9 +317,14 @@ public class ServiceCompare { | @@ -317,9 +317,14 @@ public class ServiceCompare { | ||
317 | } | 317 | } |
318 | 318 | ||
319 | client.start(); | 319 | client.start(); |
320 | - | ||
321 | String servicePath = ZKPaths.makePath("/yh/services/", serviceName); | 320 | String servicePath = ZKPaths.makePath("/yh/services/", serviceName); |
322 | 321 | ||
322 | + | ||
323 | + if("product".equals(serviceName)){ | ||
324 | + servicePath = ZKPaths.makePath("/yh/services/", "product.insertApply"); | ||
325 | + } | ||
326 | + | ||
327 | + | ||
323 | List<String> serviceInstances = client.getChildren().forPath(servicePath); | 328 | List<String> serviceInstances = client.getChildren().forPath(servicePath); |
324 | 329 | ||
325 | DEBUG.error(" zkregistercloud{} service{}, serviceInstances {} ", net, service, serviceInstances); | 330 | DEBUG.error(" zkregistercloud{} service{}, serviceInstances {} ", net, service, serviceInstances); |
-
Please register or login to post a comment