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