mirror of
https://gitee.com/novel_dev_team/novel-plus
synced 2026-07-20 17:54:59 +08:00
perf(novel-crawl): 去除小说简介末尾冗余的小说名
This commit is contained in:
@@ -110,6 +110,10 @@ public class CrawlParser {
|
||||
}
|
||||
}
|
||||
}
|
||||
//去除小说简介末尾冗余的小说名
|
||||
if (desc.endsWith(bookName)) {
|
||||
desc = desc.substring(0, desc.length() - bookName.length());
|
||||
}
|
||||
//设置书籍简介
|
||||
book.setBookDesc(desc);
|
||||
if (StringUtils.isNotBlank(ruleBean.getStatusPatten())) {
|
||||
|
||||
Reference in New Issue
Block a user