Ver Fonte

隐藏图标测试

xingzai há 2 anos atrás
pai
commit
68c0132e17
2 ficheiros alterados com 4 adições e 4 exclusões
  1. 3 3
      controllers/activity.go
  2. 1 1
      controllers/user.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 {

+ 1 - 1
controllers/user.go

@@ -1117,7 +1117,7 @@ func (this *UserController) IsShow() {
 	}
 	if companyDetail != nil && companyDetail.IsSuspend == 0 {
 		if detail.ConfigValue == "1" && (companyDetail.Status == "正式" || companyDetail.Status == "试用" || companyDetail.Status == "永续") && count == 0 {
-			resp.IsShow = true
+			//resp.IsShow = true
 		}
 	}
 	br.Ret = 200