From 9aaa39904cb4f35e5eaea97573335a78a79779fb Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Fri, 18 Apr 2025 17:57:59 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E8=AE=A2=E9=A4=90=E8=8F=9C=E5=93=81?= =?UTF-8?q?=E5=9B=BE=E7=89=87=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../canteen/core/menu/vo/AppletReserveRecipeDishesVO.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/menu/vo/AppletReserveRecipeDishesVO.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/menu/vo/AppletReserveRecipeDishesVO.java index 5ea5cd1..1e995ad 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/menu/vo/AppletReserveRecipeDishesVO.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/menu/vo/AppletReserveRecipeDishesVO.java @@ -1,6 +1,7 @@ package com.bonus.canteen.core.menu.vo; import cn.hutool.core.util.ObjectUtil; +import com.bonus.canteen.core.common.utils.FileUrlUtil; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -42,9 +43,9 @@ public class AppletReserveRecipeDishesVO { @ApiModelProperty("口味列表") private List tasteNameList; -// public String getDishesImgUrl() { -// return ObjectUtil.isNotEmpty(this.dishesImgUrl) ? SysUtil.getCutFileUrl(this.dishesImgUrl.split(",")[0]) : this.dishesImgUrl; -// } + public String getDishesImgUrl() { + return ObjectUtil.isNotEmpty(this.dishesImgUrl) ? FileUrlUtil.getFileUrl(this.dishesImgUrl.split(",")[0]) : this.dishesImgUrl; + } public Long getBaseDishesId() { return baseDishesId;