Browse Source

Merge branch 'cygx_12.6' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai 1 year ago
parent
commit
d55796c869
2 changed files with 11 additions and 4 deletions
  1. 7 1
      controllers/activity.go
  2. 4 3
      models/activity_type.go

+ 7 - 1
controllers/activity.go

@@ -637,6 +637,12 @@ func (this *ActivityCoAntroller) SignupAdd() {
 		br.ErrMsg = "操作失败,Err:" + errInfo.Error()
 		return
 	}
+	detailActivityType, err := models.GetActivityTypeDetailById(activityInfo.ActivityTypeId)
+	if err != nil {
+		br.Msg = "获取信息失败"
+		br.ErrMsg = "获取信息失败,GetActivityTypeDetailById Err:" + err.Error()
+		return
+	}
 	// 如果是 易董办会 且没有勾选 可提供外呼 默认为自主入会
 	if activityInfo.IsYidongConduct && activityInfo.IsCanOutboundCall == 0 {
 		signupType = 4
@@ -939,7 +945,7 @@ func (this *ActivityCoAntroller) SignupAdd() {
 	resp.ActivityId = activityId
 	resp.ActivityTypeName = activityInfo.ActivityName
 	resp.ActivityTime = activityInfo.ActivityTime
-	resp.ActivityType = activityInfo.ActivityType
+	resp.ActivityType = detailActivityType.ActivityType
 	//}
 
 	//去关注12.6小程序添加日历 去关注公众号强制取消关注

+ 4 - 3
models/activity_type.go

@@ -9,9 +9,10 @@ type ActivityType struct {
 	ActivityTypeName string `description:"活动类型名称"`
 	//TemplateP        string `description:"活动模板,带P标签"`
 	//Template         string `description:"活动模板"`
-	ShowType  string `description:"人数限制类型,1不展示限制,2可选限制,3强制限制"`
-	IsChoose  bool   `description:"是否选择"`
-	OnlineIco string `description:"线上线下Ico图标"`
+	ShowType     string `description:"人数限制类型,1不展示限制,2可选限制,3强制限制"`
+	IsChoose     bool   `description:"是否选择"`
+	OnlineIco    string `description:"线上线下Ico图标"`
+	ActivityType int    `description:"活动线上线下类型 1线上,0 线下"`
 }
 
 type ActivityTypeListResp struct {