[Change] BotCommandProcess 增加Search命令的反馈内容(可能必须要QQ支持长文本才能使用);

This commit is contained in:
LamGC 2020-05-08 23:31:24 +08:00
parent 2cb4fe1dbc
commit 7b52abde60

View File

@ -453,11 +453,26 @@ public class BotCommandProcess {
continue; continue;
} }
result.append(searchArea.name()).append(" (").append(count).append(" / ").append(limit).append(")\n\t作品id: ").append(illustId) JsonObject illustPreLoadData = getIllustPreLoadData(illustId, false);
result.append(searchArea.name()).append(" (").append(count).append(" / ")
.append(limit).append(")\n\t作品id: ").append(illustId)
.append(", \n\t作者名: ").append(illustObj.get("userName").getAsString()) .append(", \n\t作者名: ").append(illustObj.get("userName").getAsString())
.append("\n\t作品标题: ").append(illustObj.get("illustTitle").getAsString()) .append("\n\t作品标题: ").append(illustObj.get("illustTitle").getAsString())
.append("\n\t作品页数: ").append(illustObj.get("pageCount").getAsInt()).append("") .append("\n\t作品页数: ").append(illustObj.get("pageCount").getAsInt()).append("")
.append("\n").append(imageMsg).append("\n"); .append("\n\t点赞数")
.append(illustPreLoadData.get(PreLoadDataComparator.Attribute.LIKE.attrName).getAsInt())
.append("\n")
.append("\n\t收藏数")
.append(illustPreLoadData.get(PreLoadDataComparator.Attribute.BOOKMARK.attrName).getAsInt())
.append("\n")
.append("\n\t围观数")
.append(illustPreLoadData.get(PreLoadDataComparator.Attribute.VIEW.attrName).getAsInt())
.append("\n")
.append("\n\t评论数")
.append(illustPreLoadData.get(PreLoadDataComparator.Attribute.COMMENT.attrName).getAsInt())
.append("\n")
.append(imageMsg)
.append("\n");
count++; count++;
} }
if (count > limit) { if (count > limit) {