|
@@ -338,18 +338,20 @@ Loop:
|
|
|
}
|
|
|
|
|
|
// 处理研选下面的路演精华 的报告链接是否跳转
|
|
|
- //if hasPermission == 1 && detail.ArticleId > utils.SummaryArticleId && detail.ArticleTypeId > 0 {
|
|
|
- // articleTYpeDetail, err := models.GetArticleTypeInfo(detail.ArticleTypeId)
|
|
|
- // if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
- // br.Msg = "获取信息失败"
|
|
|
- // br.ErrMsg = "获取销售信息失败,Err:" + err.Error()
|
|
|
- // return
|
|
|
- // }
|
|
|
- // if articleTYpeDetail != nil {
|
|
|
- // detail.IsShowLinkButton = articleTYpeDetail.IsShowLinkButton
|
|
|
- // }
|
|
|
- // detail.PublishDate = utils.TimeRemoveHms2(detail.PublishDate)
|
|
|
- //}
|
|
|
+ if hasPermission == 1 && detail.ArticleId > utils.SummaryArticleId && detail.ArticleTypeId > 0 {
|
|
|
+ //articleTYpeDetail, err := models.GetArticleTypeInfo(detail.ArticleTypeId)
|
|
|
+ //if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
+ // br.Msg = "获取信息失败"
|
|
|
+ // br.ErrMsg = "获取销售信息失败,Err:" + err.Error()
|
|
|
+ // return
|
|
|
+ //}
|
|
|
+ //if articleTYpeDetail != nil {
|
|
|
+ // detail.IsShowLinkButton = articleTYpeDetail.IsShowLinkButton
|
|
|
+ //}
|
|
|
+ detail.PublishDate = utils.TimeRemoveHms2(detail.PublishDate)
|
|
|
+ chartUserTokenByMobile, _ := services.GetUserTokenByMobile(user.Mobile)
|
|
|
+ detail.ReportLink += "?token=" + chartUserTokenByMobile
|
|
|
+ }
|
|
|
resp := new(models.ArticleDetailResp)
|
|
|
resp.HasPermission = hasPermission
|
|
|
resp.HaveResearch = haveResearch
|