Administrator
2025-07-22 1dd6f7e9c028c1de4118a199bd25f58e4be79b60
refactor(mall): 移除 ApiClothesSocialServiceImpl 中的冗余代码

- 删除了不必要的 agentProducer.sendAddLike(socialId) 调用
- 优化了 clothesSocialFollow 对象的插入逻辑
1 files modified
2 ■■■■■ changed files
src/main/java/cc/mrbird/febs/mall/service/impl/ApiClothesSocialServiceImpl.java 2 ●●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/mall/service/impl/ApiClothesSocialServiceImpl.java
@@ -431,8 +431,6 @@
            clothesSocialFollow.setSourceOptionId(dto.getCommentId());
            clothesSocialFollow.setType(SocialTypeEnum.LIKE.getValue());
            clothesSocialFollowMapper.insert(clothesSocialFollow);
            agentProducer.sendAddLike(socialId);
        }
        return new FebsResponse().success().message("操作成功");
    }