소스 검색

no message

xingzai 3 년 전
부모
커밋
8efae763a6
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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
 				}
 			}