Quellcode durchsuchen

fix change video resource url | https://

guozhaoshun vor 6 Jahren
Ursprung
Commit
1e5447c99c

+ 3 - 1
rankin-resource-service/src/main/java/cn/rankin/resourceservice/controller/ResourceController.java

@@ -11,6 +11,7 @@ import com.alibaba.fastjson.JSON;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
 import org.springframework.web.bind.annotation.*;
 
 import java.util.List;
@@ -27,7 +28,8 @@ public class ResourceController {
     public static String HTTP_VIDEO_DOMAIN = "http://efunvideo.ai160.com";
     public static String LJ_VIDEO_DOMAIN = "http://ljvideo.ai160.com";
 
-    public static String HTTPS_VIDEO_DOMAIN = "https://efunvideo.ai160.com";
+    @Value("${resource.video.domain}")
+    public static String HTTPS_VIDEO_DOMAIN;
 
     @RequestMapping(value = "/list")
     public APIResult<Page<Resource>> search(ResourceSearchDTO resourceSearchDTO) {