Răsfoiți Sursa

优化代码

fangqing 2 luni în urmă
părinte
comite
174141a59d

+ 3 - 3
ruoyi-generator/src/main/java/com/ruoyi/generator/controller/CommunityTagController.java

@@ -119,7 +119,7 @@ public class CommunityTagController extends BaseController {
     //@Anonymous
     //@Anonymous
     public AjaxResult likeTag(@RequestBody CommunityUserTag communityUserTag) {
     public AjaxResult likeTag(@RequestBody CommunityUserTag communityUserTag) {
         if (Objects.isNull(communityUserTag.getTagId())) {
         if (Objects.isNull(communityUserTag.getTagId())) {
-            return AjaxResult.error("关注圈子异常,请刷新页面重试!");
+            return AjaxResult.error("收藏标签异常,请刷新页面重试!");
         }
         }
         Long userId = SecurityUtils.getLoginUser().getUserId();
         Long userId = SecurityUtils.getLoginUser().getUserId();
         String msg = "";
         String msg = "";
@@ -168,7 +168,7 @@ public class CommunityTagController extends BaseController {
         }
         }
         List<CommunityTag> communityTags = null;
         List<CommunityTag> communityTags = null;
         try {
         try {
-            //获取关注的圈子ID
+            //获取拉黑标签ID
             List<CommunityUserTag> userTags = communityUserTagMapper
             List<CommunityUserTag> userTags = communityUserTagMapper
                     .selectList(new QueryWrapper<CommunityUserTag>()
                     .selectList(new QueryWrapper<CommunityUserTag>()
                             .eq("user_id", userId)
                             .eq("user_id", userId)
@@ -248,7 +248,7 @@ public class CommunityTagController extends BaseController {
         }
         }
         List<CommunityTag> communityTags = null;
         List<CommunityTag> communityTags = null;
         try {
         try {
-            //获取关注的圈子ID
+            //获取拉黑标签ID
             List<CommunityTagBlock> userTags = communityTagBlockMapper
             List<CommunityTagBlock> userTags = communityTagBlockMapper
                     .selectList(new QueryWrapper<CommunityTagBlock>()
                     .selectList(new QueryWrapper<CommunityTagBlock>()
                             .eq("user_id", userId)
                             .eq("user_id", userId)