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