|
@@ -103,7 +103,8 @@ public class FileAndOssUtil {
|
|
|
|
|
|
//上传的数据是byte[],key是上传后的文件名
|
|
//上传的数据是byte[],key是上传后的文件名
|
|
public void upload(byte[] data,String key1) throws IOException{
|
|
public void upload(byte[] data,String key1) throws IOException{
|
|
- log.info("开始上传文件 源路径:{},目标路径:{}, type:{}" , new String(data, "UTF-8"), key1, type);
|
|
|
|
|
|
+// log.info("开始上传文件 源路径:{},目标路径:{}, type:{}" , new String(data, "UTF-8"), key1, type);
|
|
|
|
+ log.info("开始上传文件 ,目标路径:{}, type:{}" , key1, type);
|
|
StorageType storageType = StorageType.get(type);
|
|
StorageType storageType = StorageType.get(type);
|
|
switch (storageType){
|
|
switch (storageType){
|
|
case OSS:
|
|
case OSS:
|
|
@@ -121,7 +122,7 @@ public class FileAndOssUtil {
|
|
}
|
|
}
|
|
|
|
|
|
public void upload(String filePath, String key1) {
|
|
public void upload(String filePath, String key1) {
|
|
- log.info("开始上传文件 源路径:{},目标路径:{},type:{}" , filePath,key1,type);
|
|
|
|
|
|
+ log.info("开始上传文件 源路径:{},目标路径:{},type:{}" , filePath, key1, type);
|
|
StorageType storageType = StorageType.get(type);
|
|
StorageType storageType = StorageType.get(type);
|
|
switch (storageType){
|
|
switch (storageType){
|
|
case OSS:
|
|
case OSS:
|