rdluck 4 年之前
父节点
当前提交
cc7a8db8a1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      controllers/report.go

+ 2 - 2
controllers/report.go

@@ -69,7 +69,7 @@ func (this *ReportController) Detail() {
 
 	productId := 0
 	maxPermissionCount := 0
-	if report.ClassifyName == "权益研报" {
+	if strings.Contains(report.ClassifyNameFirst, "权益研报") {
 		productId = 2
 		maxPermissionCount = 5
 	} else {
@@ -157,7 +157,7 @@ func (this *ReportController) Detail() {
 	//判断大小权限
 	{
 		if status == 2 {
-			if company!=nil {
+			if company != nil {
 				permissionCount, err := models.GetCompanyProductPermissionCount(company.CompanyId, productId)
 				if err != nil {
 					br.Msg = "获取信息失败"