|
@@ -86,6 +86,31 @@ func (this *ArticleController) Detail() {
|
|
|
if _, ok := lyjhTypeMap[detail.CategoryId]; ok {
|
|
|
detail.IsRoadShow = true
|
|
|
}
|
|
|
+
|
|
|
+ // 高毅资产的联系人,有权限的行业也不能查看报告详情页。提示无权限页面
|
|
|
+ if detail.ArticleTypeId == 0 && user.CompanyId == utils.GAO_YI_ZI_CHAN_COMPANY_ID {
|
|
|
+ _, sellerName, sellerMobile, popupMsg, err := services.GetUserHasPermissionArticle(user)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "获取信息失败"
|
|
|
+ br.ErrMsg = "判断是否已申请过试用失败,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ resp.PopupMsg = popupMsg
|
|
|
+ resp.HasPermission = 3
|
|
|
+ resp.SellerName = sellerName
|
|
|
+ resp.SellerMobile = sellerMobile
|
|
|
+ detail.Body = ""
|
|
|
+ detail.Abstract = ""
|
|
|
+ detail.BodyText = ""
|
|
|
+ detail.SellerName = sellerName
|
|
|
+ detail.SellerMobile = sellerMobile
|
|
|
+ resp.Detail = detail
|
|
|
+ br.Ret = 200
|
|
|
+ br.Success = true
|
|
|
+ br.Msg = "获取成功"
|
|
|
+ br.Data = resp
|
|
|
+ return
|
|
|
+ }
|
|
|
articleCollectMap, _ := services.GetCygxArticleCollectMap(user.UserId)
|
|
|
detail.IsCollect = articleCollectMap[detail.ArticleId]
|
|
|
if isSendWx == 1 {
|