|
@@ -104,6 +104,16 @@ func (this *ArticleController) Detail() {
|
|
|
} else {
|
|
|
detail.Body = ""
|
|
|
}
|
|
|
+ //获取销售手机号
|
|
|
+ sellerItem, err := models.GetSellerByCompanyId(user.CompanyId)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "获取信息失败"
|
|
|
+ br.ErrMsg = "获取销售数据失败,Err:" + strconv.Itoa(uid) + ";articleId" + strconv.Itoa(articleId)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if sellerItem != nil {
|
|
|
+ detail.SellerMobile = sellerItem.Mobile
|
|
|
+ }
|
|
|
resp := new(models.ArticleDetailResp)
|
|
|
resp.HasPermission = hasPermission
|
|
|
resp.Detail = detail
|