提交 975bf830 authored 作者: zhangshuang's avatar zhangshuang

bug修改

上级 a957c0e8
...@@ -123,9 +123,9 @@ public class FileUploadServiceImpl implements FileUploadService { ...@@ -123,9 +123,9 @@ public class FileUploadServiceImpl implements FileUploadService {
@Override @Override
public ServerResponse upload(MultipartFile file, String md5File, Integer chunk) { public ServerResponse upload(MultipartFile file, String md5File, Integer chunk) {
log.info(file.getName()); log.info("文件名称" + file.getName());
log.info(md5File); log.info("md5File" + md5File);
log.info(chunk + ""); log.info("当前分片" + chunk);
String chunkPath = fileAddress + "/" + md5File + "/";//分片存放目录 String chunkPath = fileAddress + "/" + md5File + "/";//分片存放目录
File dirFile = new File(chunkPath); File dirFile = new File(chunkPath);
if (!dirFile.exists()) {//目录不存在,创建目录 if (!dirFile.exists()) {//目录不存在,创建目录
...@@ -147,6 +147,7 @@ public class FileUploadServiceImpl implements FileUploadService { ...@@ -147,6 +147,7 @@ public class FileUploadServiceImpl implements FileUploadService {
} catch (IOException e) { } catch (IOException e) {
log.error(filePath + "文件没有保存"); log.error(filePath + "文件没有保存");
} }
log.info(saveFile.getAbsolutePath() + "文件保存成功");
return ServerResponse.success("true"); return ServerResponse.success("true");
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论