Commit 7b4e097d by 宋珺琪

修改添加图片bug

parent f55d93b0
...@@ -68,7 +68,6 @@ public class AnswerServiceImpl implements AnswerService { ...@@ -68,7 +68,6 @@ public class AnswerServiceImpl implements AnswerService {
i = paperPhotoMapper.deletePaperPhoto(paperPhotoDelete); i = paperPhotoMapper.deletePaperPhoto(paperPhotoDelete);
// 照片处理 // 照片处理
if (paperPhotoParams.getFiles() != null) { if (paperPhotoParams.getFiles() != null) {
if(i>0){
String base64 = ""; String base64 = "";
for (MultipartFile file : paperPhotoParams.getFiles()) { for (MultipartFile file : paperPhotoParams.getFiles()) {
try { try {
...@@ -84,7 +83,6 @@ public class AnswerServiceImpl implements AnswerService { ...@@ -84,7 +83,6 @@ public class AnswerServiceImpl implements AnswerService {
} }
} }
} }
}
return i; return i;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment