Преглед на файлове

fix change video resource url | https://

guozhaoshun преди 6 години
родител
ревизия
1e5447c99c
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      rankin-resource-service/src/main/java/cn/rankin/resourceservice/controller/ResourceController.java

+ 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) {