浏览代码

no message

xingzai 2 年之前
父节点
当前提交
79972668c4
共有 1 个文件被更改,包括 3 次插入0 次删除
  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)