Commit f812d514 by 阮思源

没有资源服务的时候加段话

parent 9ca222d8
...@@ -635,16 +635,18 @@ public class BookKeywordBizImpl implements BookKeywordBiz { ...@@ -635,16 +635,18 @@ public class BookKeywordBizImpl implements BookKeywordBiz {
Boolean isInviteGroup = bookGroupDTO.getIsInviteGroup(); Boolean isInviteGroup = bookGroupDTO.getIsInviteGroup();
// 获取配置的资源服务 // 获取配置的资源服务
List<BookGroupServe> bookGroupServeList = bookGroupBiz.getBookGroupServeList(bookGroupId); List<BookGroupServe> bookGroupServeList = bookGroupBiz.getBookGroupServeList(bookGroupId);
String bookName = bookGroupDTO.getBookName();
if (!ListUtils.isEmpty(bookGroupServeList)) { if (!ListUtils.isEmpty(bookGroupServeList)) {
String bookName = bookGroupDTO.getBookName();
if (!StringUtil.isEmpty(bookName)) { if (!StringUtil.isEmpty(bookName)) {
text = text + "《" + bookName + "》" + "配有以下资源服务,戳链接立即获取:" + "\n"; text = text + "《" + bookName + "》" + "配有以下资源服务,戳链接立即获取:\n";
} }
int i = 1; int i = 1;
for (BookGroupServe bookGroupServe : bookGroupServeList) { for (BookGroupServe bookGroupServe : bookGroupServeList) {
text = text + i + "." + bookGroupServe.getServeName() + bookGroupServe.getShortUrl() + "\n"; text = text + i + "." + bookGroupServe.getServeName() + bookGroupServe.getShortUrl() + "\n";
i = i + 1; i = i + 1;
} }
} else {
text = text + "《" + bookName + "》" + "还没有配置资源服务,敬请期待。\n";
} }
//获取配套关键词 //获取配套关键词
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment