mirror of
https://github.com/Hello-hao/Tbed.git
synced 2024-04-21 12:32:10 +00:00
🚑
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user