Browse Source

no message

xingzai 1 year ago
parent
commit
63c787b39a
2 changed files with 9 additions and 0 deletions
  1. 5 0
      controllers/activity.go
  2. 4 0
      services/activity.go

+ 5 - 0
controllers/activity.go

@@ -283,6 +283,11 @@ func (this *ActivityNoLoginController) ActivityListNew() {
 	isExternalLabel, _ := this.GetInt("IsExternalLabel")   //
 	isResearchPoints, _ := this.GetInt("IsResearchPoints") //
 	isResearch, _ := this.GetBool("IsResearch", false)     // 是否为研选 查研观向11.0 (研选活动独立显示)
+
+	if activityTypeId == "5" {
+		activityTypeId = "5,8" //专家线下沙龙可以查看买方线下交流
+	}
+
 	var startSize int
 	if pageSize <= 0 {
 		pageSize = utils.PageSize20

+ 4 - 0
services/activity.go

@@ -490,6 +490,10 @@ func HandleActivityTypeHomeList(listType []*models.ActivityTypeHome, listActivit
 		if v.ActivityTypeId == 7 {
 			v.ActivityTypeId = 2
 		}
+		// 如果是买方线下交流的活动,合并到专家线下交流
+		if v.ActivityTypeId == 8 {
+			v.ActivityTypeId = 5
+		}
 		//if v.ActivityTypeId == 1 {
 		activityIds = append(activityIds, v.ActivityId)
 		//}