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) {