From 5b365fab83bc337b0bd4fd1ad7b0c2bbe1faafcc Mon Sep 17 00:00:00 2001 From: khalil <842328916@qq.com> Date: Fri, 5 Sep 2025 11:29:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A3=85=E6=89=AE=E5=95=86=E5=9F=8E-=E8=B4=AD?= =?UTF-8?q?=E4=B9=B0-=E6=8B=A6=E6=88=AA=E7=BB=AD=E8=B4=B9=E6=88=91?= =?UTF-8?q?=E7=9A=84=E8=A3=85=E6=89=AE=E4=B8=AD=E5=B9=B6=E4=B8=94=E5=9C=A8?= =?UTF-8?q?=E8=A3=85=E6=89=AE=E5=95=86=E5=9F=8E=E4=B8=AD=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E8=83=BD=E8=B4=AD=E4=B9=B0=E7=9A=84=E8=A3=85=E6=89=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 392c25119bcaf98dfc399962f7466854fb455208) --- .../accompany/business/service/dress/DressShopService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accompany-business/accompany-business-service/src/main/java/com/accompany/business/service/dress/DressShopService.java b/accompany-business/accompany-business-service/src/main/java/com/accompany/business/service/dress/DressShopService.java index d40f9609b..f1ec05776 100644 --- a/accompany-business/accompany-business-service/src/main/java/com/accompany/business/service/dress/DressShopService.java +++ b/accompany-business/accompany-business-service/src/main/java/com/accompany/business/service/dress/DressShopService.java @@ -170,8 +170,8 @@ public class DressShopService extends BaseService { @Frozen public void userBuyDressShop(Long uid, Long targetUid, Integer id, DeviceInfo deviceInfo, Byte dressShopBuyType) throws Exception { DressShop dressShop = dressShopMapper.selectById(id); - if (null == id && dressShop == null) { - throw new ServiceException(BusiStatus.REQUEST_PARAM_ERROR); + if (null == id || dressShop == null) { + throw new ServiceException(BusiStatus.DRESS_NOTEXISTS); } Byte dressType = dressShop.getDressType(); List idS = new ArrayList<>();