Browse Source

no message

xingzai 2 years ago
parent
commit
0de9c84797
1 changed files with 3 additions and 0 deletions
  1. 3 0
      services/activity.go

+ 3 - 0
services/activity.go

@@ -1613,6 +1613,9 @@ func GetActivityVideoResp(mapActivityId []int) (mapItem map[int]*models.CygxActi
 	for _, v := range mapActivityId {
 		ativityVIdstr += strconv.Itoa(v) + ","
 	}
+	if ativityVIdstr == "" {
+		return
+	}
 	ativityVIdstr = strings.TrimRight(ativityVIdstr, ",")
 	condition += ` AND art.activity_id IN  (` + ativityVIdstr + `) `
 	var pars []interface{}