Procházet zdrojové kódy

地址修改配置化

xueyiming před 9 měsíci
rodič
revize
0883a21617

+ 3 - 1
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/strategy/reply/impl/BuckStrategyV1.java

@@ -15,6 +15,7 @@ import com.tzld.longarticle.recommend.server.service.strategy.reply.ReplyStrateg
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
 import org.springframework.util.CollectionUtils;
 
@@ -44,7 +45,8 @@ public class BuckStrategyV1 implements ReplyStrategyService {
 
     private static final String CDN_URL = "https://rescdn.piaoquantv.com/";
 
-    private static final String GET_SMALL_PAGE_URL = "https://testapi.piaoquantv.com";
+    @Value("${small_page_url}")
+    private String GET_SMALL_PAGE_URL;
 
     @Autowired
     private AlgGhAutoreplyVideoRankDataMapper algGhAutoreplyVideoRankDataMapper;

+ 3 - 1
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/strategy/reply/impl/PushMessageStrategyV1.java

@@ -15,6 +15,7 @@ import com.tzld.longarticle.recommend.server.service.strategy.reply.ReplyStrateg
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
 import org.springframework.util.CollectionUtils;
 import org.springframework.util.StringUtils;
@@ -45,7 +46,8 @@ public class PushMessageStrategyV1 implements ReplyStrategyService {
 
     private static final String CDN_URL = "https://rescdn.piaoquantv.com/";
 
-    private static final String GET_SMALL_PAGE_URL = "https://testapi.piaoquantv.com";
+    @Value("${small_page_url}")
+    private String GET_SMALL_PAGE_URL;
 
     @Autowired
     private AlgGhAutoreplyVideoRankDataMapper algGhAutoreplyVideoRankDataMapper;

+ 3 - 1
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/strategy/reply/impl/WeComPushMessageStrategyV1.java

@@ -15,6 +15,7 @@ import com.tzld.longarticle.recommend.server.service.strategy.reply.ReplyStrateg
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
 import org.springframework.util.CollectionUtils;
 import org.springframework.util.StringUtils;
@@ -45,7 +46,8 @@ public class WeComPushMessageStrategyV1 implements ReplyStrategyService {
 
     private static final String CDN_URL = "https://rescdn.piaoquantv.com/";
 
-    private static final String GET_SMALL_PAGE_URL = "https://testapi.piaoquantv.com";
+    @Value("${small_page_url}")
+    private String GET_SMALL_PAGE_URL;
 
     @Autowired
     private AlgGhAutoreplyVideoRankDataMapper algGhAutoreplyVideoRankDataMapper;

+ 3 - 1
long-article-recommend-service/src/main/resources/application-dev.yml

@@ -118,4 +118,6 @@ pushMessage:
   callback:
     topic: 3rd_party_push_message_callback_dev
     groupId: GID_3RD_PARTY_PUSH_MESSAGE_CALLBACK_DEV
-    tag: mini
+    tag: mini
+
+small_page_url: https://testapi.piaoquantv.com

+ 3 - 1
long-article-recommend-service/src/main/resources/application-pre.yml

@@ -161,4 +161,6 @@ aliyun:
     filter:
       log:
         project: wqsd-video
-        store: video_blacklist_security_filter_log
+        store: video_blacklist_security_filter_log
+
+small_page_url: https://testapi.piaoquantv.com

+ 3 - 1
long-article-recommend-service/src/main/resources/application-prod.yml

@@ -108,4 +108,6 @@ pushMessage:
   callback:
     topic: 3rd_party_push_message_callback_prod
     groupId: GID_3RD_PARTY_PUSH_MESSAGE_CALLBACK_PROD
-    tag: mini
+    tag: mini
+
+small_page_url: https://api.piaoquantv.com

+ 3 - 1
long-article-recommend-service/src/main/resources/application-test.yml

@@ -151,4 +151,6 @@ aliyun:
     filter:
       log:
         project: wqsd-video-test
-        store: video_blacklist_security_filter_log
+        store: video_blacklist_security_filter_log
+
+small_page_url: https://testapi.piaoquantv.com