xingzai 1 tahun lalu
induk
melakukan
d7cf80054a
1 mengubah file dengan 14 tambahan dan 10 penghapusan
  1. 14 10
      controllers/yanxuan_special.go

+ 14 - 10
controllers/yanxuan_special.go

@@ -243,11 +243,12 @@ func (this *BaseAuthMobileController) Detail() {
 	}
 
 	resp.HasPermission = hasPermission
-	if userId == 0 {
-		resp.Content = utils.InterceptHtmlLength(resp.Content, 240) // 截取前80个字
-	}
+	//if userId == 0 {
+	//	resp.Content = utils.InterceptHtmlLength(resp.Content, 240) // 截取前80个字
+	//}
 	if hasPermission != 0 && hasPermission != 1 {
-		resp.Content = utils.InterceptHtmlLength(resp.Content, 240) // 截取前80个字
+		//resp.Content = utils.InterceptHtmlLength(resp.Content, 240) // 截取前80个字
+		resp.Content = ""
 	}
 	br.Data = resp
 	br.Ret = 200
@@ -585,13 +586,16 @@ func (this *YanxuanSpecialController) Collect() {
 		return
 	}
 	var sellerName string
-	sellerItemQy, err := models.GetSellerByCompanyIdCheckFicc(user.CompanyId, 2)
-	if err != nil {
-		br.Msg = "查询栏目详情失败!"
-		br.ErrMsg = "获取销售信息失败,Err:" + err.Error()
-		return
+	if user.CompanyId > 1 {
+		sellerItemQy, err := models.GetSellerByCompanyIdCheckFicc(user.CompanyId, 2)
+		if err != nil {
+			br.Msg = "查询栏目详情失败!"
+			br.ErrMsg = "获取销售信息失败,Err:" + err.Error()
+			return
+		}
+		sellerName = sellerItemQy.RealName
 	}
-	sellerName = sellerItemQy.RealName
+
 	if req.Status == 1 {
 		item := models.CygxYanxuanSpecialCollect{
 			UserId:           user.UserId,