瀏覽代碼

活动详情限免展示

xingzai 2 年之前
父節點
當前提交
92b460afe9
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      controllers/activity.go

+ 3 - 3
controllers/activity.go

@@ -811,9 +811,9 @@ func (this *ActivityCoAntroller) Detail() {
 	}
 	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"
 		detail, err := models.GetConfigByCode(configCode)
 		if err != nil {