Browse Source

活动详情限免展示

xingzai 2 years ago
parent
commit
92b460afe9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      controllers/activity.go

+ 3 - 3
controllers/activity.go

@@ -811,9 +811,9 @@ func (this *ActivityCoAntroller) Detail() {
 	}
 	}
 	if hasPermission == 1 {
 	if hasPermission == 1 {
 		//是否展示限免标签
 		//是否展示限免标签
-		//if services.GetShowSustainable() && strings.Contains(activityInfo.ChartPermissionName, "研选") {
-		//	activityInfo.IsShowSustainable = true
-		//}
+		if services.GetShowSustainable() && strings.Contains(activityInfo.ChartPermissionName, "研选") {
+			activityInfo.IsShowSustainable = true
+		}
 		configCode := "description_of_research"
 		configCode := "description_of_research"
 		detail, err := models.GetConfigByCode(configCode)
 		detail, err := models.GetConfigByCode(configCode)
 		if err != nil {
 		if err != nil {