Administrator
2025-07-22 9c71d02044805dc653ac8e953db8d79cb2c7dc97
fix(mall): 修复收藏功能发送消息错误

- 将错误发送的消息类型从 like 改为 collect
- 补充了收藏功能的消息发送逻辑
1 files modified
4 ■■■ changed files
src/main/java/cc/mrbird/febs/mall/service/impl/ApiClothesSocialServiceImpl.java 4 ●●● patch | view | raw | blame | history
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("操作成功");
    }