Browse Source

no message

xingzai 1 year ago
parent
commit
e96e6e4eec
1 changed files with 8 additions and 1 deletions
  1. 8 1
      controllers/cygx/activity.go

+ 8 - 1
controllers/cygx/activity.go

@@ -88,6 +88,13 @@ func (this *ActivityCoAntroller) PreserveAndPublish() {
 		br.Msg = "内容不可为空"
 		return
 	}
+	//不限制人数的,强制改为全部客户可见
+	if req.LimitPeopleNum == 0 {
+		req.VisibleRange = 2
+		req.IsMakerShow = 0
+		req.Scale = ""
+		req.CustomerTypeIds = ""
+	}
 	activityId := req.ActivityId
 	labelType := req.LabelType
 	labelList := req.List
@@ -103,7 +110,7 @@ func (this *ActivityCoAntroller) PreserveAndPublish() {
 	industrialSubjectIdS := req.IndustrialSubjectIdS
 	body := req.Body
 	customerTypeIds := req.CustomerTypeIds
-	//不限制人数的,强制改为全部客户可见
+
 	if req.VisibleRange != 1 {
 		req.VisibleRange = 2
 	}