Browse Source

Merge branch 'dev-xym-update-proxy1' of Server/long-article-manage into master

xueyiming 4 months ago
parent
commit
998f027dae

+ 1 - 1
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/LongArticleServerApplication.java

@@ -17,7 +17,7 @@ public class LongArticleServerApplication {
                 new Authenticator() {
                     public PasswordAuthentication getPasswordAuthentication() {
                         return new PasswordAuthentication(
-                                "t14070979713487", "hqwanfvy".toCharArray());
+                                "t17772369458618", "5zqcjkmy".toCharArray());
                     }
                 }
         );

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

@@ -43,7 +43,7 @@ public class HkspSearch {
                 new Authenticator() {
                     public PasswordAuthentication getPasswordAuthentication() {
                         return new PasswordAuthentication(
-                                "t14070979713487", "hqwanfvy".toCharArray());
+                                "t17772369458618", "5zqcjkmy".toCharArray());
                     }
                 }
         );
@@ -82,7 +82,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/131.0.0.0 Safari/537.36")
                     .header("x-requested-with", "xmlhttprequest")
                     .timeout(120000) // 设置超时时间
-                    .setProxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("j685.kdltps.com", 15818)))
+                    .setProxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("q796.kdltps.com", 15818)))
                     .form(params)
                     .execute();
 
@@ -162,7 +162,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/131.0.0.0 Safari/537.36")
                 .timeout(120000) // 设置超时时间
                 .form(params)
-                .setProxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("j685.kdltps.com", 15818)))
+                .setProxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("q796.kdltps.com", 15818)))
                 .execute();
         return JSONObject.parseObject(response.body()).getJSONObject("data").getJSONObject("apiData").getJSONObject("curVideoMeta");
     }

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

@@ -22,10 +22,10 @@ import java.util.UUID;
 @Slf4j
 public class VideoDownloader {
 
-    private static final String PROXY_HOST = "j685.kdltps.com";
+    private static final String PROXY_HOST = "q796.kdltps.com";
     private static final int PROXY_PORT = 15818;
-    private static final String USERNAME = "t14070979713487";
-    private static final String PASSWORD = "hqwanfvy";
+    private static final String USERNAME = "t17772369458618";
+    private static final String PASSWORD = "5zqcjkmy";
     private static final int MAX_RETRIES = 3;
 
     public static String downloadCover(String outVideoId, String platform, String coverUrl) {
@@ -146,7 +146,7 @@ public class VideoDownloader {
                 new Authenticator() {
                     public PasswordAuthentication getPasswordAuthentication() {
                         return new PasswordAuthentication(
-                                "t14070979713487", "hqwanfvy".toCharArray());
+                                "t17772369458618", "5zqcjkmy".toCharArray());
                     }
                 }
         );

+ 2 - 0
long-article-server/src/main/resources/application-test.properties

@@ -16,3 +16,5 @@ spring.redis.password=Qingqu2019
 apollo.meta: https://apolloconfig-internal.piaoquantv.com
 
 xxl.job.admin.addresses=http://test-xxl-job-internal.piaoquantv.com/xxl-job-admin
+
+download.path=/Users/shimeng/Desktop/download/