Alex 4 년 전
부모
커밋
f2fe477c8d
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      ruoyi-system/src/main/java/com/ruoyi/app/service/impl/TbMyPublishServiceImpl.java

+ 2 - 0
ruoyi-system/src/main/java/com/ruoyi/app/service/impl/TbMyPublishServiceImpl.java

@@ -381,6 +381,8 @@ public class TbMyPublishServiceImpl extends ServiceImpl<TbMyPublishMapper, TbMyP
     @Override
     public List<Long> getMyFrientIds(Long appUserId){
         List<Long> fids = new ArrayList<>();
+        // 自己
+        fids.add(appUserId);
         if (appUserId != null) {
             // 好友列表
             TbMyFriends tbMyFriends = new TbMyFriends();