@@ -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 = "获取信息失败"