opt:1.修复引入EasyCaptchaBoot导致的web路径报错。2.添加后台管理系统车辆管理、二维码管理。

This commit is contained in:
2026-02-01 18:10:37 +08:00
parent 778c8de6cd
commit 67653cc200
21 changed files with 505 additions and 239 deletions

View File

@@ -10,7 +10,9 @@ import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.text.DecimalFormat;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.Map;
@@ -75,4 +77,20 @@ public class QRCodeUtil {
return null;
}
}
public static boolean deleteQRCode(String filePath,String fileName) {
try {
Path path = Paths.get(filePath).resolve(fileName).normalize();
boolean deleted = Files.deleteIfExists(path);
if (deleted) {
log.info("文件删除成功: {}", fileName);
} else {
log.warn("文件不存在: {}", fileName);
}
return true;
} catch (Exception e) {
log.info("删除二维码文件失败:{}", e.getMessage());
return false;
}
}
}