|
@@ -40,8 +40,8 @@ func (this *ArticleController) Detail() {
|
|
|
uid := user.UserId
|
|
|
articleId, err := this.GetInt("ArticleId")
|
|
|
if articleId <= 0 {
|
|
|
- br.Msg = "参数错误"
|
|
|
- br.ErrMsg = "参数错误"
|
|
|
+ br.Msg = "文章不存在"
|
|
|
+ br.ErrMsg = "文章不存在,文章ID错误"
|
|
|
return
|
|
|
}
|
|
|
detail := new(models.ArticleDetail)
|
|
@@ -64,7 +64,6 @@ func (this *ArticleController) Detail() {
|
|
|
return
|
|
|
}
|
|
|
detail, err = models.GetArticleDetailById(articleId)
|
|
|
- //services.BodyAnalysis2(detail.Body)
|
|
|
if err != nil {
|
|
|
br.Msg = "获取信息失败"
|
|
|
br.ErrMsg = "获取信息失败,Err:" + err.Error()
|