Explorar o código

Merge branch 'cygx_7.0' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai %!s(int64=2) %!d(string=hai) anos
pai
achega
144d81838a
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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 {