This commit is contained in:
hello-hao
2021-11-29 11:27:26 +08:00
parent feb13edc66
commit 78b3206f65
8 changed files with 39 additions and 82 deletions
@@ -1,5 +1,6 @@
package cn.hellohao.utils;
import cn.hellohao.config.GlobalConstant;
import cn.hellohao.pojo.Keys;
import cn.hellohao.pojo.ReturnImage;
import cn.hellohao.pojo.UploadConfig;
@@ -16,7 +17,7 @@ public class LocUpdateImg {
public static boolean deleteLOCImg(String imagename){
boolean isDele = false;
try {
String filePath =File.separator + "HellohaoData" + File.separator+imagename;
String filePath = GlobalConstant.LOCPATH + File.separator+imagename;
File file = new File(filePath);
isDele = file.delete();
}catch (Exception e){
@@ -30,7 +31,7 @@ public class LocUpdateImg {
KeysServiceImpl keysService = SpringContextHolder.getBean(KeysServiceImpl.class);
final Keys key = keysService.selectKeys(keyID);
ReturnImage returnImage = new ReturnImage();
String filePath =File.separator + "HellohaoData" + File.separator;
String filePath =GlobalConstant.LOCPATH + File.separator;
File file = null;
for (Map.Entry<String, File> entry : fileMap.entrySet()) {
String ShortUID = SetText.getShortUuid();