yumeng пре 5 година
родитељ
комит
06ab4a6801

+ 0 - 27
module-common/pom.xml

@@ -35,13 +35,6 @@
         </dependency>-->
 
         <dependency>
-            <groupId>com.lgg.jave</groupId>
-            <artifactId>jave</artifactId>
-            <version>1.0.2</version>
-        </dependency>
-
-
-        <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
@@ -115,25 +108,5 @@
                 <directory>src/main/resources</directory>
             </resource>
         </resources>
-
-
     </build>
-
-    <repositories>
-        <!-- 配置nexus远程仓库 -->
-        <repository>
-            <id>nexus</id>
-            <name>Nexus Snapshot Repository</name>
-            <url>http://39.106.184.70:8081/nexus/content/groups/public/</url>
-            <releases>
-                <enabled>true</enabled>
-            </releases>
-            <snapshots>
-                <enabled>false</enabled>
-            </snapshots>
-        </repository>
-    </repositories>
-    <!-- 配置从哪个仓库中下载构件,即jar包 -->
-
-
 </project>

+ 11 - 11
module-common/src/main/java/cn/com/ctop/common/module/service/impl/MaterialInfoServiceImpl.java

@@ -14,7 +14,7 @@ import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import it.sauronsoftware.jave.Encoder;
+ // import it.sauronsoftware.jave.Encoder;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
@@ -252,10 +252,10 @@ public class MaterialInfoServiceImpl extends ServiceImpl<MaterialInfoMapper, Mat
     @Autowired
     private MaterialParameterMapper materialParameterMapper;
 
-    public void getFile(MaterialInfo materialInfo) {
-       /* uploadExecutorService.submit(new Runnable() {
+   /* public void getFile(MaterialInfo materialInfo) {
+       *//* uploadExecutorService.submit(new Runnable() {
             @Override
-            public void run() {*/
+            public void run() {*//*
         try {
             System.err.println("开始获取素材基本信息");
             System.err.println(materialInfo);
@@ -266,7 +266,7 @@ public class MaterialInfoServiceImpl extends ServiceImpl<MaterialInfoMapper, Mat
                 String localUrl = LoadFileUtil.downLoadFromUrl(url, PropertiesUtils.getValue("kuaishou_config", "video_sava_path"));
                 File file = new File(localUrl);
                 it.sauronsoftware.jave.Encoder encoder = new Encoder();
-                /*try {*/
+                *//*try {*//*
                 it.sauronsoftware.jave.MultimediaInfo m = encoder.getInfo(file);
                 long duration = m.getDuration();
                 long secondDuration = duration / 1000;
@@ -297,18 +297,18 @@ public class MaterialInfoServiceImpl extends ServiceImpl<MaterialInfoMapper, Mat
 
                 }
                 System.err.println(2222222);
-               /* } catch (Exception e) {
+               *//* } catch (Exception e) {
                     e.printStackTrace();
-                } *//*finally {
+                } *//**//*finally {
                     file.delete();
-                }*/
+                }*//*
             }
         } catch (Exception e) {
             e.printStackTrace();
         }
-       /*     }
-        });*/
-    }
+       *//*     }
+        });*//*
+    }*/
 
 
 }