update:
1.fix
This commit is contained in:
@@ -397,6 +397,9 @@ public class MerchantInventoryServiceImpl extends BaseServiceImpl<MerchantInvent
|
||||
if (Objects.isNull(inventory)) {
|
||||
throw new ServiceException("无效商品");
|
||||
}
|
||||
if (Objects.equals(userId, inventory.getUserId())){
|
||||
throw new ServiceException("无法关注自己的店铺");
|
||||
}
|
||||
if (favoriteService.hasFavorite(userId, inventory.getUserId())) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user