|
@@ -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,
|