admin
2019-01-16 e477968929ab57da9b1b3c309b487b4f9fd606ef
fanli/src/main/java/com/yeshi/fanli/util/TaoBaoHttpUtil.java
@@ -207,8 +207,7 @@
         //System.out.println("url"+url);
         GetMethod method = new GetMethod(url);
         //3S的响应超时
         HttpConnectionManagerParams hparams = new
                 HttpConnectionManagerParams();
         HttpConnectionManagerParams hparams = new HttpConnectionManagerParams();
                 hparams.setConnectionTimeout(3000);
                 client.getHttpConnectionManager().setParams(hparams);
@@ -275,9 +274,10 @@
   public static String taoKeGet(Map<String, String> params) {
      // 聚石塔服务器环境  118.178.179.189
      String result = get("http://118.178.179.189/taoke/", params, false);
      if (StringUtil.isNullOrEmpty(result))
         result = get("http://gw.api.taobao.com/router/rest", params, false);
      // result = get("http://118.178.179.189/taoke/", params, false);
      // if (StringUtil.isNullOrEmpty(result))
      String result = get("http://gw.api.taobao.com/router/rest", params, false);
      return result;
   }