lixiaolong 3 месяцев назад
Родитель
Сommit
b0324ba5a6

+ 1 - 1
tenant/insurance/quotation-huatai/src/main/java/com/jzg/quotation/huatai/crawler/component/HtCrawlerRequestComponent.java

@@ -62,7 +62,7 @@ public class HtCrawlerRequestComponent {
 
     private final HuaTaiCrawlerCacheComponent huaTaiCrawlerCacheComponent;
 
-    private static final String proxyHostName = "39.98.41.104";
+    private static final String proxyHostName = "172.24.144.226";//39.98.41.104
 
     private static final int proxyPort = 2025;
 

+ 1 - 1
tenant/insurance/quotation-huatai/src/main/java/com/jzg/quotation/huatai/crawler/service/Impl/HuaTaiCrawlerRequestImpl.java

@@ -139,7 +139,7 @@ public class HuaTaiCrawlerRequestImpl implements HuaTaiCrawlerRequest {
                 super.prepareConnection(c, m);
             }
         };
-        factory.setProxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("39.98.41.104", 2025)));
+        factory.setProxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("172.24.144.226", 2025)));//39.98.41.104
         return new RestTemplate(factory);
     }
 

+ 1 - 1
tenant/insurance/quotation-huatai/src/main/java/com/jzg/quotation/huatai/crawler/util/CookieUtils.java

@@ -154,7 +154,7 @@ public class CookieUtils {
             }
         };
 
-        Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("39.98.41.104", 2025));
+        Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("172.24.144.226", 2025));//39.98.41.104
         factory.setProxy(proxy);
 
         RestTemplate restTemplate = new RestTemplate(factory);