|
@@ -86,10 +86,7 @@ namespace GxPress.Service.Implement.Reply
|
|
|
item.Name = replyResult.Name;
|
|
|
}
|
|
|
item.AvatarUrl = StringUtils.AddDomainMin(item.AvatarUrl);
|
|
|
- var typeValue = item.TypeValue;
|
|
|
- if (item.TypeValue == AllTypeConst.Note.GetHashCode())
|
|
|
- typeValue = AllTypeConst.Topic.GetHashCode();
|
|
|
- item.Remark = ((AllTypeConst)typeValue).GetDescriptionOriginal();
|
|
|
+ item.Remark = ((AllTypeConst)item.TypeValue).GetDescriptionOriginal();
|
|
|
item.IsComment = true;
|
|
|
}
|
|
|
return receipt;
|
|
@@ -155,10 +152,7 @@ namespace GxPress.Service.Implement.Reply
|
|
|
item.Name = replyResult.Name;
|
|
|
}
|
|
|
item.AvatarUrl = StringUtils.AddDomainMin(item.AvatarUrl);
|
|
|
- var typeValue = item.TypeValue;
|
|
|
- if (item.TypeValue == AllTypeConst.Note.GetHashCode())
|
|
|
- typeValue = AllTypeConst.Topic.GetHashCode();
|
|
|
- item.Remark = ((AllTypeConst)typeValue).GetDescriptionOriginal();
|
|
|
+ item.Remark = ((AllTypeConst)item.TypeValue).GetDescriptionOriginal();
|
|
|
item.IsComment = true;
|
|
|
}
|
|
|
return receipt;
|