From cd8d1e2ba83be3589bb335116dfc527e834e4afa Mon Sep 17 00:00:00 2001 From: kl <632104866@QQ.com> Date: Tue, 16 Jan 2018 18:11:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8E=8B=E7=BC=A9=E5=8C=85?= =?UTF-8?q?=E5=86=85=E5=A4=9A=E5=9B=BE=E7=89=87=E6=97=B6=E6=80=BB=E6=98=AF?= =?UTF-8?q?=E4=BB=8E=E7=AC=AC=E4=B8=80=E5=BC=A0=E5=BC=80=E5=A7=8B=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/OnlinePreviewController.java | 1 + jodconverter-web/src/main/resources/web/picture.ftl | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/jodconverter-web/src/main/java/com/yudianbank/web/controller/OnlinePreviewController.java b/jodconverter-web/src/main/java/com/yudianbank/web/controller/OnlinePreviewController.java index 5742c4f3..4109afd4 100644 --- a/jodconverter-web/src/main/java/com/yudianbank/web/controller/OnlinePreviewController.java +++ b/jodconverter-web/src/main/java/com/yudianbank/web/controller/OnlinePreviewController.java @@ -69,6 +69,7 @@ public class OnlinePreviewController { imgUrls = Lists.newArrayList(url); } model.addAttribute("imgurls", imgUrls); + model.addAttribute("currentUrl",url); return "picture"; } else if (type.equalsIgnoreCase("simText")) { ReturnResponse response = simTextUtil.readSimText(decodedUrl, fileName); diff --git a/jodconverter-web/src/main/resources/web/picture.ftl b/jodconverter-web/src/main/resources/web/picture.ftl index c83ec222..5ffcbeda 100644 --- a/jodconverter-web/src/main/resources/web/picture.ftl +++ b/jodconverter-web/src/main/resources/web/picture.ftl @@ -7,20 +7,22 @@