|
@@ -6,10 +6,12 @@ import com.fdkankan.fusion.common.util.ShellUtil;
|
|
|
import com.fdkankan.fusion.common.util.UploadToOssUtil;
|
|
|
import com.fdkankan.fusion.common.util.VideoUtil;
|
|
|
import com.fdkankan.fusion.exception.BusinessException;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
+import sun.rmi.runtime.Log;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.io.File;
|
|
@@ -18,6 +20,7 @@ import java.util.LinkedHashSet;
|
|
|
import java.util.UUID;
|
|
|
|
|
|
@Service
|
|
|
+@Slf4j
|
|
|
public class UploadService {
|
|
|
|
|
|
@Resource
|
|
@@ -95,6 +98,7 @@ public class UploadService {
|
|
|
}
|
|
|
return queryPath +filePathAdd+ fileName + suffixName;
|
|
|
}catch (Exception e){
|
|
|
+ log.info("upload-error:{}",e);
|
|
|
throw new BusinessException(ResultCode.UPLOAD_ERROR.code,ResultCode.UPLOAD_ERROR.msg);
|
|
|
}finally {
|
|
|
if(localFile!=null){
|