lihao 4 years ago
parent
commit
8371626ba5

+ 5 - 5
gx_api/GxPress/Service/GxPress.Service.Implement/Collection/CollectionService.cs

@@ -53,9 +53,9 @@ namespace GxPress.Service.Implement.Collection
             IArticleRepository articleRepository, ITopicRepository topicRepository, IMiddleRepository middleRepository,
             IArticleRepository articleRepository, ITopicRepository topicRepository, IMiddleRepository middleRepository,
             INoteRepository noteRepository, IUserRepository userRepository, IArticleService articleService, INoticeRepository noticeRepository,
             INoteRepository noteRepository, IUserRepository userRepository, IArticleService articleService, INoticeRepository noticeRepository,
             IMissiveRepository missiveRepository, IMapper mapper,
             IMissiveRepository missiveRepository, IMapper mapper,
-            IGroupRepository groupRepository, IMeetingSummaryRepository meetingSummaryRepository, 
-            IFolderUserRepository folderUserRepository, 
-            IAnalyzeService analyzeService, 
+            IGroupRepository groupRepository, IMeetingSummaryRepository meetingSummaryRepository,
+            IFolderUserRepository folderUserRepository,
+            IAnalyzeService analyzeService,
             IFileLibraryRepository fileLibraryRepository, IUserMiddleService userMiddleService, IMediaRepository mediaRepository, IMeetingRepository meetingRepository)
             IFileLibraryRepository fileLibraryRepository, IUserMiddleService userMiddleService, IMediaRepository mediaRepository, IMeetingRepository meetingRepository)
         {
         {
             _collectionRepository = collectionRepository;
             _collectionRepository = collectionRepository;
@@ -457,7 +457,7 @@ namespace GxPress.Service.Implement.Collection
                     Id = articleResult.Id,
                     Id = articleResult.Id,
                     ArticleImgUrl = articleImgUrl,
                     ArticleImgUrl = articleImgUrl,
                     ReadCount = articleResult.ReadCount,
                     ReadCount = articleResult.ReadCount,
-                    Press=articleResult.Source
+                    Press = articleResult.Source
                 };
                 };
 
 
             }
             }
@@ -574,7 +574,7 @@ namespace GxPress.Service.Implement.Collection
                     return new CollectionContentJsonData();
                     return new CollectionContentJsonData();
                 list = (new CollectionContentJsonData
                 list = (new CollectionContentJsonData
                 {
                 {
-                    Author = user.Name,
+                    Author = notice.TypeValue == AllTypeConst.Anonymity.GetHashCode() ? "匿名" : user.Name,
                     Title = notice.Title,
                     Title = notice.Title,
                     CreatedData = notice.CreatedDate,
                     CreatedData = notice.CreatedDate,
                     Type = collectionType,
                     Type = collectionType,