xingzai %!s(int64=2) %!d(string=hai) anos
pai
achega
b37d6a5464
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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)
 	}