diff --git a/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCollectServiceImpl.java b/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCollectServiceImpl.java index 4cef14443f681198cdce73c93103b0214579ea21..1835626e74c7bc79a7842d8fb20d1e6b97c0394b 100644 --- a/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCollectServiceImpl.java +++ b/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCollectServiceImpl.java @@ -80,7 +80,9 @@ public class CsdnCollectServiceImpl implements CsdnCollectService { collectInfoQuery.setAuthor(username); collectInfoQuery.setDescription(article.getDescription()); collectInfoQuery.setSource("blog"); - collectInfoQuery.setFolderIdList(new ArrayList<>(selfFolderId)); + ArrayList list = new ArrayList<>(); + list.add(selfFolderId); + collectInfoQuery.setFolderIdList(list); collectInfoQuery.setTitle(article.getTitle()); collectInfoQuery.setUrl(article.getUrl()); collectInfoQuery.setUsername(selfUserName);