xingzai 2 жил өмнө
parent
commit
b37d6a5464
1 өөрчлөгдсөн 5 нэмэгдсэн , 1 устгасан
  1. 5 1
      services/activity.go

+ 5 - 1
services/activity.go

@@ -628,7 +628,11 @@ func ActivityDetaailShow(activityInfo *models.ActivityListResp) (itemActivity *m
 			err = e
 			return
 		}
-		activityInfo.ArticleList = artList
+		if len(artList) == 0 {
+			activityInfo.ArticleList = make([]*models.ActivityArticleResp, 0)
+		} else {
+			activityInfo.ArticleList = artList
+		}
 	} else {
 		activityInfo.ArticleList = make([]*models.ActivityArticleResp, 0)
 	}