1.fix
This commit is contained in:
2026-05-12 14:40:18 +08:00
parent 955fe2b146
commit f96dbfb6da

View File

@@ -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;
}