From dface05dfb85fa1e93d53f3f805ad2e5ab1625e1 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Tue, 21 Jun 2022 13:55:07 +0800 Subject: [PATCH] ... --- .../resource/videoPreview/VideoPreviewFactory.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/renren-admin/src/main/java/io/renren/modules/resource/videoPreview/VideoPreviewFactory.java b/renren-admin/src/main/java/io/renren/modules/resource/videoPreview/VideoPreviewFactory.java index bd07edfa..7b9f2b61 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/videoPreview/VideoPreviewFactory.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/videoPreview/VideoPreviewFactory.java @@ -10,6 +10,9 @@ import io.renren.modules.monitor.service.MonitorService; import io.renren.modules.resource.service.ResourceService; import io.renren.modules.resource.videoPreview.domain.BaoTouVideoPreviewService; import io.renren.modules.resource.videoPreview.domain.TsingtaoVideoPreviewService; +import io.renren.modules.resource.videoPreview.domain.TsingtaoXHAVideoPreviewService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import java.util.Optional; @@ -17,6 +20,7 @@ import java.util.Optional; * 视频预览工厂类 */ public final class VideoPreviewFactory { + private static Logger logger = LoggerFactory.getLogger(VideoPreviewFactory.class); private static ResourceService resourceService; private static int projectPlace; @@ -33,6 +37,9 @@ public final class VideoPreviewFactory { VideoPreviewFactory.projectPlace = resourceService.getProjectPlace(); VideoPreviewFactory.baoTouProperties = SpringContextUtils.getBean(BaoTouProperties.class); VideoPreviewFactory.monitorService = SpringContextUtils.getBean(MonitorService.class); + + VideoPreviewFactory.tsingtaoProperties = SpringContextUtils.getBean(TsingtaoProperties.class); + VideoPreviewFactory.tsingtao_xhaProperties = SpringContextUtils.getBean(Tsingtao_xhaProperties.class); } /** @@ -48,14 +55,14 @@ public final class VideoPreviewFactory { } break; case TSINGTAO_XHA: { // 青岛西海岸 - + abstractVideoPreviewService = new TsingtaoXHAVideoPreviewService(tsingtao_xhaProperties); } break; case BAOTOU: { // 包头 abstractVideoPreviewService = new BaoTouVideoPreviewService(baoTouProperties); } case UNKNOWN: { // 未知区域 - + logger.error("区域未知"); } break; }