Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed Nov 20, 2018
1 parent a31f972 commit 60616d6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ Observable<BookContentBean> analyzeBookContent(final String s, final BaseChapter
ChapterListBean nextChapter = DbHelper.getInstance().getmDaoSession().getChapterListBeanDao().queryBuilder()
.where(ChapterListBeanDao.Properties.NoteUrl.eq(chapterBean.getNoteUrl()), ChapterListBeanDao.Properties.DurChapterIndex.eq(chapterBean.getDurChapterIndex() + 1))
.build().unique();
while (!TextUtils.isEmpty(webContentBean.nextUrl) && !webContentBean.nextUrl.equals(nextChapter.getDurChapterUrl()) && !usedUrlList.contains(webContentBean.nextUrl)) {
while (!TextUtils.isEmpty(webContentBean.nextUrl) && !usedUrlList.contains(webContentBean.nextUrl)) {
usedUrlList.add(webContentBean.nextUrl);
if (nextChapter != null && webContentBean.nextUrl.equals(nextChapter.getDurChapterUrl())) {
break;
}
Call<String> call = DefaultModel.getRetrofitString(bookSourceBean.getBookSourceUrl())
.create(IHttpGetApi.class).getWebContentCall(webContentBean.nextUrl, AnalyzeHeaders.getMap(bookSourceBean.getHttpUserAgent()));
String response = "";
Expand Down

0 comments on commit 60616d6

Please sign in to comment.