Browse Source

no message

xingzai 2 years ago
parent
commit
1bf98e1e4e
4 changed files with 3 additions and 2 deletions
  1. 1 0
      controllers/activity.go
  2. 1 0
      models/resource_data.go
  3. 0 2
      services/activity_special.go
  4. 1 0
      services/resource_data.go

+ 1 - 0
controllers/activity.go

@@ -1672,6 +1672,7 @@ func (this *ActivityController) ActivityListSearch() {
 		item.City = v.City
 		item.IsSignup = v.IsSignup
 		item.SignupType = v.SignupType
+		item.ActivityTypeId = v.ActivityTypeId
 		item.IsCancelMeetingReminder = v.IsCancelMeetingReminder
 		item.IsAppointment = v.IsAppointment
 		item.ActiveState = v.ActiveState

+ 1 - 0
models/resource_data.go

@@ -61,6 +61,7 @@ type CygxResourceDataResp struct {
 	AudioLink               bool                       `description:"是否展示回放按钮"`
 	FileType                int                        `description:"类型: 1-音频; 2-视频"`
 	SignupType              int                        `description:"报名方式,1预约外呼,2自主拨入,3我要报名"`
+	ActivityTypeId          int                        `description:"活动类型id"`
 }
 
 type HomeResourceDataListResp struct {

+ 0 - 2
services/activity_special.go

@@ -581,8 +581,6 @@ func GetActivitySpecialSearcheList(user *models.WxUserItem, condition string, st
 		err = errors.New("GetActivityonditionList, Err: " + e.Error())
 		return
 	}
-	//return
-	fmt.Println("totalIk", totalIk)
 	total = totalSearche + totalIk
 	keyWordArr, e := GetIndustryMapNameSliceV3(keywords)
 	if e != nil {

+ 1 - 0
services/resource_data.go

@@ -179,6 +179,7 @@ func GetResourceDataList(condition string, pars []interface{}, startSize, pageSi
 			mapItems[fmt.Sprint("activity", v.ActivityId)].YidongActivityUrl = v.YidongActivityUrl
 			mapItems[fmt.Sprint("activity", v.ActivityId)].ImgUrl = imgUrlResp
 			mapItems[fmt.Sprint("activity", v.ActivityId)].SignupType = v.SignupType
+			mapItems[fmt.Sprint("activity", v.ActivityId)].ActivityTypeId = v.ActivityTypeId
 		}
 	}