dengsixing %!s(int64=2) %!d(string=hai) anos
pai
achega
a6e1eee0d1

+ 7 - 0
4dkankan-common-utils/pom.xml

@@ -38,6 +38,13 @@
             <artifactId>javacpp</artifactId>
             <version>1.4.3</version>
         </dependency>
+
+        <dependency>
+            <groupId>org.bytedeco</groupId>
+            <artifactId>javacv-platform</artifactId>
+            <version>1.4.3</version>
+        </dependency>
+
         <dependency>
             <groupId>joinery</groupId>
             <artifactId>jave</artifactId>

+ 2 - 2
4dkankan-utils-fyun-oss/src/main/java/com/fdkankan/fyun/oss/OssFileService.java

@@ -95,10 +95,10 @@ public class OssFileService extends AbstractFYunFileService {
         try {
             String optType = new File(filePath).isDirectory() ? "folder" : "file";
             String command = String.format(fYunConstants.DOWNLOAD_SH, bucket, remoteFilePath, filePath, FYunTypeEnum.OSS.code(), optType);
-            log.info("开始上传文件, ossPath:{}, srcPath:{}", remoteFilePath, filePath);
+            log.info("开始下载文件, ossPath:{}, srcPath:{}", remoteFilePath, filePath);
             callshell(command);
         } catch (Exception e) {
-            log.error("上传文件失败, ossPath:{}, srcPath:{}", remoteFilePath, filePath);
+            log.error("下载文件失败, ossPath:{}, srcPath:{}", remoteFilePath, filePath);
             e.printStackTrace();
         }
     }