lihao 4 years ago
parent
commit
284fb0a482

+ 4 - 2
gx_api/GxPress/Service/GxPress.Service.Implement/Collection/CollectionService.cs

@@ -564,7 +564,9 @@ namespace GxPress.Service.Implement.Collection
             }
 
             //通知
-            if (collectionType == GxPress.EnumConst.AllTypeConst.Notice.GetHashCode() || collectionType == GxPress.EnumConst.AllTypeConst.Missive.GetHashCode() || collectionType == GxPress.EnumConst.AllTypeConst.Anonymity.GetHashCode())
+            if (collectionType == GxPress.EnumConst.AllTypeConst.Notice.GetHashCode()
+             || collectionType == GxPress.EnumConst.AllTypeConst.Missive.GetHashCode() 
+             || collectionType == GxPress.EnumConst.AllTypeConst.Anonymity.GetHashCode())
             {
                 var notice = await _noticeRepository.GetAsync(collectionDataId);
                 if (notice == null)
@@ -575,7 +577,7 @@ namespace GxPress.Service.Implement.Collection
                 list = (new CollectionContentJsonData
                 {
                     Author = notice.TypeValue == AllTypeConst.Anonymity.GetHashCode() ? "匿名" : user.Name,
-                    Title = notice.Title,
+                    Title = string.IsNullOrEmpty(notice.Title) ? string.Empty : notice.Title,
                     CreatedData = notice.CreatedDate,
                     Type = collectionType,
                     Id = notice.Id,

+ 1 - 1
gx_api/GxPress/Service/GxPress.Service.Implement/Note/NoteService.cs

@@ -277,7 +277,7 @@ namespace GxPress.Service.Implement.Note
                 analyzeRequest.AnalyzeType = 3;
                 analyzeRequest.CommentId = 0;
                 analyzeRequest.SourceId = request.FolderId;
-                analyzeRequest.UserId = request.UserId;
+                analyzeRequest.UserId =request.VisitUserId;
                 analyzeRequest.TypeValue = request.FolderId == 0 ? AllTypeConst.TopicNoteAll.GetHashCode() : AllTypeConst.TopicNoteFolder.GetHashCode();
                 result.IsCollect = await _analyzeService.ExistsSourceUserAsync(analyzeRequest);
                 analyzeRequest.AnalyzeType = 4;