Browse Source

no message

xingzai 2 years ago
parent
commit
79972668c4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      controllers/activity.go

+ 3 - 0
controllers/activity.go

@@ -81,6 +81,9 @@ func (this *ActivityController) LabelTypeList() {
 		br.ErrMsg = "获取失败,Err:" + err.Error()
 		return
 	}
+	if len(speciaItem.List) == 0 {
+		speciaItem.List = make([]*models.CygxActivityLabelList, 0)
+	}
 	list = append(list, speciaItem)
 
 	resp := new(models.ActivityTypeListHomeResp)