xingzai 3 yıl önce
ebeveyn
işleme
8efae763a6
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  1. 1 2
      controllers/article.go

+ 1 - 2
controllers/article.go

@@ -193,9 +193,8 @@ func (this *ArticleController) Detail() {
 			} else { //无该行业权限
 				companyDetail, err := models.GetCompanyDetailById(user.CompanyId)
 				if err == nil && companyDetail.ProductId == 1 {
-					hasPermission = 4
+					hasPermission = 2
 				} else {
-					fmt.Println("这里", hasPermission)
 					hasPermission = 3
 				}
 			}