|
@@ -1053,6 +1053,7 @@ func (this *ActivityCoAntroller) SignupCancel() {
|
|
|
// @Title 用户搜索详情
|
|
|
// @Description 获取用户搜索详情接口
|
|
|
// @Param IsShowJurisdiction query int true "是否仅展示有权限的,默认为0,1是,2否 "
|
|
|
+// @Param IsHideResearch query int true "是否隐藏研选行业 "
|
|
|
// @Success Ret=200 {object} models.ActivityUserSearchContentList
|
|
|
// @router /getUserSearchContent [get]
|
|
|
func (this *ActivityCoAntroller) GetUserSearchContent() {
|
|
@@ -1068,6 +1069,7 @@ func (this *ActivityCoAntroller) GetUserSearchContent() {
|
|
|
br.Ret = 408
|
|
|
return
|
|
|
}
|
|
|
+ isHideResearch, _ := this.GetBool("IsHideResearch", false)
|
|
|
uid := user.UserId
|
|
|
detailSeearch := new(models.CygxActivityUserSearchContent)
|
|
|
detailSeearch.IsShowJurisdiction = 0
|
|
@@ -1144,7 +1146,7 @@ func (this *ActivityCoAntroller) GetUserSearchContent() {
|
|
|
}
|
|
|
var listChartPermissionidNew2 []*models.ActivityChartPermission
|
|
|
for _, v := range list2 {
|
|
|
- if userType == 1 {
|
|
|
+ if userType == 1 || isHideResearch {
|
|
|
//if v.PermissionName != "研选" {
|
|
|
if !strings.Contains(v.PermissionName, "研选") {
|
|
|
listChartPermissionidNew2 = append(listChartPermissionidNew2, v)
|
|
@@ -1156,7 +1158,7 @@ func (this *ActivityCoAntroller) GetUserSearchContent() {
|
|
|
resp.ListChartPermission2 = listChartPermissionidNew2
|
|
|
var listChartPermissionidNew []*models.ActivityChartPermission
|
|
|
for _, v := range listChartPermissionid {
|
|
|
- if userType == 1 {
|
|
|
+ if userType == 1 || isHideResearch {
|
|
|
if !strings.Contains(v.PermissionName, "研选") {
|
|
|
listChartPermissionidNew = append(listChartPermissionidNew, v)
|
|
|
}
|
|
@@ -2412,6 +2414,9 @@ func (this *ActivityCoAntroller) LabelTypeListV5() {
|
|
|
}
|
|
|
item.Resource = 1
|
|
|
item.ActivityId = v.ActivityId
|
|
|
+ if v.ChartPermissionId == utils.CHART_PERMISSION_ID_YANXUAN {
|
|
|
+ item.IsResearch = true
|
|
|
+ }
|
|
|
|
|
|
item.IsExternalLabel = v.IsExternalLabel
|
|
|
|