|
@@ -62,6 +62,14 @@ func (this *ArticleController) Detail() {
|
|
|
br.ErrMsg = "判断是否已申请访谈失败,Err:" + strconv.Itoa(uid) + ";articleId" + strconv.Itoa(articleId)
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+ detail, err = models.GetArticleDetailById(articleId)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "获取信息失败"
|
|
|
+ br.ErrMsg = "获取信息失败,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
if companyPermission == "" {
|
|
|
hasPermission = 2
|
|
|
hasFree = 2
|
|
@@ -95,13 +103,6 @@ func (this *ArticleController) Detail() {
|
|
|
hasPermission = 3
|
|
|
}
|
|
|
}
|
|
|
- detail, err = models.GetArticleDetailById(articleId)
|
|
|
- if err != nil {
|
|
|
- br.Msg = "获取信息失败"
|
|
|
- br.ErrMsg = "获取信息失败,Err:" + err.Error()
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
collectCount, err := models.GetArticleCollectCount(uid, articleId)
|
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
br.Msg = "获取信息失败"
|
|
@@ -133,7 +134,7 @@ func (this *ArticleController) Detail() {
|
|
|
}
|
|
|
if sellerItem != nil {
|
|
|
detail.SellerMobile = sellerItem.Mobile
|
|
|
- detail.SellerName=sellerItem.RealName
|
|
|
+ detail.SellerName = sellerItem.RealName
|
|
|
}
|
|
|
} else { //潜在客户
|
|
|
if applyCount > 0 {
|