From 9c71d02044805dc653ac8e953db8d79cb2c7dc97 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Tue, 22 Jul 2025 11:06:11 +0800
Subject: [PATCH] fix(mall): 修复收藏功能发送消息错误

---
 src/main/java/cc/mrbird/febs/mall/service/impl/ApiClothesSocialServiceImpl.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/mall/service/impl/ApiClothesSocialServiceImpl.java b/src/main/java/cc/mrbird/febs/mall/service/impl/ApiClothesSocialServiceImpl.java
index a2ffc63..963fbc1 100644
--- a/src/main/java/cc/mrbird/febs/mall/service/impl/ApiClothesSocialServiceImpl.java
+++ b/src/main/java/cc/mrbird/febs/mall/service/impl/ApiClothesSocialServiceImpl.java
@@ -432,7 +432,7 @@
             clothesSocialFollow.setType(SocialTypeEnum.LIKE.getValue());
             clothesSocialFollowMapper.insert(clothesSocialFollow);
 
-            agentProducer.sendAddCollect(socialId);
+            agentProducer.sendAddLike(socialId);
         }
         return new FebsResponse().success().message("操作成功");
     }
@@ -460,6 +460,8 @@
             clothesSocialFollow.setSourceId(socialId);
             clothesSocialFollow.setType(SocialTypeEnum.COLLECT.getValue());
             clothesSocialFollowMapper.insert(clothesSocialFollow);
+
+            agentProducer.sendAddCollect(socialId);
         }
         return new FebsResponse().success().message("操作成功");
     }

--
Gitblit v1.9.1