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