修改了资源路径

This commit is contained in:
wucongxing8150 2025-08-01 10:57:50 +08:00
parent b19c16e540
commit 5c6718b905
2 changed files with 2 additions and 2 deletions

View File

@ -885,7 +885,7 @@ public class CaseClinicalVideoService {
avatarByte = Oss.getObjectToByte(caseClinicalDoctor.getAvatar().replaceFirst("^/+", ""));
}else{
try {
avatarByte = ImageUtil.readImageToBytes("src/main/resources/static/cert/avatar.png");
avatarByte = ImageUtil.readImageToBytes("static/cert/avatar.png");
} catch (Exception e) {
throw new BusinessException("-1", e.getMessage());
}

View File

@ -34,7 +34,7 @@ public class CertService {
){
try {
// 加载背景模板图片
BufferedImage background = ImageIO.read(new File("src/main/resources/static/cert/template.png"));
BufferedImage background = ImageIO.read(new File("static/cert/template.png"));
Graphics2D g2d = (Graphics2D) background.getGraphics();
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);