李昊 4 years ago
parent
commit
9e3e77d4c4

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

@@ -261,9 +261,9 @@ namespace GxPress.Service.Implement.Collection
                             else if (item.Data.Data.Type == AllTypeConst.Text.GetHashCode())
                                 item.Title = item.Data.Data.Text;
                             else if (item.Data.Data.Type == AllTypeConst.Image.GetHashCode())
-                                item.Title = "[图片]";
+                                item.Data.Title = "[图片]";
                             else
-                                item.Title = "[附件]";
+                                item.Data.Title = "[附件]";
                         }
                     }
                 }
@@ -483,7 +483,7 @@ 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)