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<>();