Ver código fonte

图片显示问题

tags/v1.1.0
qiujinyang 2 anos atrás
pai
commit
f91c1632b5
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ReportServiceImpl.java

+ 1
- 1
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ReportServiceImpl.java Ver arquivo

@@ -473,7 +473,7 @@ public class ReportServiceImpl extends BaseServiceImpl<ReportMapper, Report> imp
Image image = null;
String url = reportInfoVO.getQuestionReportList().get(i).getFileMarkerUrl();
if (new UrlResource(url).exists()) {
image = Image.getInstance(url);
image = Image.getInstance("/data/java/tuoheng_lc/uploads/2022-08-18-17-30-54_frame-19128-19398_type-林斑_74d20d0c1ed811ed960b18c04d1a13ab-online-P20220818171703347-8c3e7407e6054db695aa0a07fe02bf0b_AI.jpg");
image.setAlignment(Image.ALIGN_CENTER);
image.scalePercent(100); //依照比例缩放
image.setAbsolutePosition(0, 0);

Carregando…
Cancelar
Salvar