Authored by mlge

在线IP配置对比 修改

@@ -320,14 +320,14 @@ public class ServiceCompare { @@ -320,14 +320,14 @@ public class ServiceCompare {
320 String servicePath = ZKPaths.makePath("/yh/services/", serviceName); 320 String servicePath = ZKPaths.makePath("/yh/services/", serviceName);
321 321
322 322
323 - if("product".equals(serviceName)){ 323 + /* if(PRODUCT_SERVICE.equals(serviceName)){
324 servicePath = ZKPaths.makePath("/yh/services/", "product.insertApply"); 324 servicePath = ZKPaths.makePath("/yh/services/", "product.insertApply");
325 - } 325 + }*/
326 326
327 327
328 List<String> serviceInstances = client.getChildren().forPath(servicePath); 328 List<String> serviceInstances = client.getChildren().forPath(servicePath);
329 329
330 - DEBUG.error(" zkregistercloud{} service{}, serviceInstances {} ", net, service, serviceInstances); 330 + DEBUG.info(" zkregistercloud: {} serviceName: {}, serviceInstances: {} ", net, serviceName, serviceInstances.toString());
331 331
332 for (String serviceInstance : serviceInstances) { 332 for (String serviceInstance : serviceInstances) {
333 333
@@ -341,6 +341,7 @@ public class ServiceCompare { @@ -341,6 +341,7 @@ public class ServiceCompare {
341 } 341 }
342 } 342 }
343 343
  344 + DEBUG.info("zkregister serviceIp:{}",serviceIps.toString());
344 client.close(); 345 client.close();
345 //排序 346 //排序
346 Collections.sort(serviceIps, new IpComparator()); 347 Collections.sort(serviceIps, new IpComparator());
@@ -84,8 +84,8 @@ public interface StaticVar { @@ -84,8 +84,8 @@ public interface StaticVar {
84 84
85 String ORDER_SERVICE = "order.getOrderCount"; 85 String ORDER_SERVICE = "order.getOrderCount";
86 86
87 - String PRODUCT_SERVICE = "product.addFavorite";  
88 - 87 +// String PRODUCT_SERVICE = "product.addFavorite";
  88 + String PRODUCT_SERVICE = "product.insertApply";
89 String PROMOTION_SERVICE = "promotion.getActivityShare"; 89 String PROMOTION_SERVICE = "promotion.getActivityShare";
90 90
91 String PLATFORM_SERVICE = "platform.addSort"; 91 String PLATFORM_SERVICE = "platform.addSort";