|
@@ -60,7 +60,7 @@ namespace GxPress.Service.Implement.Article
|
|
|
//增加阅读量
|
|
|
//访问
|
|
|
if (userId > 0)
|
|
|
- await _visitService.AddVisit(userId, 1, id);
|
|
|
+ await _visitService.AddVisit(userId, AllTypeConst.Article.GetHashCode(), id);
|
|
|
//获取文章类型名称
|
|
|
var articleGroup = await _articleGroupRepository.GetAsync(article.GroupId);
|
|
|
var groupName = articleGroup == null ? "" : articleGroup.Name;
|
|
@@ -137,7 +137,7 @@ namespace GxPress.Service.Implement.Article
|
|
|
articleResult.PraiseCount = praiseCount;
|
|
|
//是否点赞
|
|
|
articleResult.IsPraise = await _analyzeService.ExistsAsync(analyzeRequest);
|
|
|
- var request = new PraisePageSearchRequest { SourceId = id, TypeValue =AllTypeConst.Article.GetHashCode(), Page = 1, PerPage = 3 };
|
|
|
+ var request = new PraisePageSearchRequest { SourceId = id, TypeValue = AllTypeConst.Article.GetHashCode(), Page = 1, PerPage = 3 };
|
|
|
articleResult.ArticlePraisePagedList = await _analyzeService.GetPraisePageAsync(request);
|
|
|
return articleResult;
|
|
|
}
|
|
@@ -304,7 +304,7 @@ namespace GxPress.Service.Implement.Article
|
|
|
AddDate = article.AddDate,
|
|
|
Sort = article.Sort,
|
|
|
IsTop = request.IsTop,
|
|
|
- ArticleContent=StringUtils.JsonDeserialize<ArticleContent>(article.ContentJson)
|
|
|
+ ArticleContent = StringUtils.JsonDeserialize<ArticleContent>(article.ContentJson)
|
|
|
};
|
|
|
//文章图片
|
|
|
var resultImageUrls = articleResult.ImageUrls.ToList();
|