wangyunpeng 6 giờ trước cách đây
mục cha
commit
fe20825894

+ 1 - 1
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/utils/other/HkspSearch.java

@@ -84,7 +84,7 @@ public class HkspSearch {
                     .header("user-agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36")
                     .header("x-requested-with", "xmlhttprequest")
                     .timeout(120000) // 设置超时时间
-                    .setHttpProxy(PROXY_HOST, PROXY_PORT)
+                    .setProxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress(PROXY_HOST, PROXY_PORT)))
                     .form(params)
                     .execute();