zwxi 9 月之前
父节点
当前提交
4fc1fc890a
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      controllers/yb_research_signup_statistics.go

+ 6 - 0
controllers/yb_research_signup_statistics.go

@@ -65,6 +65,12 @@ func (this *BannerController) StatisticsItem() {
 		br.ErrMsg = "GetYbResearchSignupStatisticsItemsById,Err:" + err.Error()
 		return
 	}
+	if list == nil {
+		br.Ret = 200
+		br.Success = true
+		br.Msg = "获取成功"
+		return
+	}
 	resp.List = list
 	for _, v := range list {
 		resp.Total += v.Count