修改了资源路径
This commit is contained in:
parent
b19c16e540
commit
5c6718b905
@ -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());
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user