瀏覽代碼

no message

xingzai 2 年之前
父節點
當前提交
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)
 	}