From 6cfe0b8fa5cf8416ae0d22e61f52a9f7930a4718 Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Tue, 1 Apr 2025 19:22:23 +0800 Subject: [PATCH] getPrefixToFileUrl --- .../core/allocation/canteen/dto/AllocStallModifyDTO.java | 4 ++-- .../core/allocation/canteen/dto/AllocStallSaveDTO.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/allocation/canteen/dto/AllocStallModifyDTO.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/allocation/canteen/dto/AllocStallModifyDTO.java index 1d4593d0..9f247e1e 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/allocation/canteen/dto/AllocStallModifyDTO.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/allocation/canteen/dto/AllocStallModifyDTO.java @@ -71,7 +71,7 @@ public class AllocStallModifyDTO { private Long oldCanteenId; public void setImgUrl(String imgUrl) { - this.imgUrl = SysUtil.getCutPath(imgUrl); + this.imgUrl = SysUtil.setPrefixToFileUrl(imgUrl); } public void setPayCodeUrl(String payCodeUrl) { @@ -85,7 +85,7 @@ public class AllocStallModifyDTO { } public String getImgUrl() { - return SysUtil.getCutPath(this.imgUrl); + return SysUtil.getPrefixToFileUrl(this.imgUrl); } public String getPayCodeUrl() { diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/allocation/canteen/dto/AllocStallSaveDTO.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/allocation/canteen/dto/AllocStallSaveDTO.java index 8b536298..00555bfc 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/allocation/canteen/dto/AllocStallSaveDTO.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/allocation/canteen/dto/AllocStallSaveDTO.java @@ -68,7 +68,7 @@ public class AllocStallSaveDTO { private Map extendMap; public String getImgUrl() { - return SysUtil.getCutFileUrl(this.imgUrl); + return SysUtil.getPrefixToFileUrl(this.imgUrl); } public String getPayCodeUrl() { @@ -204,7 +204,7 @@ public class AllocStallSaveDTO { } public void setImgUrl(final String imgUrl) { - this.imgUrl = imgUrl; + this.imgUrl = SysUtil.setPrefixToFileUrl(this.imgUrl); } public void setIfBook(final Integer ifBook) {