xingzai 2 éve
szülő
commit
79972668c4
1 módosított fájl, 3 hozzáadás és 0 törlés
  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)