zwxi 9 luni în urmă
părinte
comite
fcc0ba20ad
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      controllers/yb_research_signup_statistics.go

+ 1 - 1
controllers/yb_research_signup_statistics.go

@@ -65,7 +65,7 @@ func (this *BannerController) StatisticsItem() {
 		br.ErrMsg = "GetYbResearchSignupStatisticsItemsById,Err:" + err.Error()
 		return
 	}
-	if list == nil {
+	if len(list) == 0 {
 		br.Ret = 200
 		br.Success = true
 		br.Msg = "获取成功"