Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
670848654 committed Sep 2, 2020
1 parent 319307c commit 6b85249
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void onResponse(Call call, Response response) {
JSONObject weekObj = new JSONObject();
Document body = Jsoup.parse(response.body().string());
if (body.html().contains("You have verified successfully")) {
Sakura.REDIRECTED = body.select("a").attr("href");
Sakura.REDIRECTED = body.select("a").attr("href").replaceAll("/","");
getHtml(callback);
return;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class SearchModel extends BaseModel implements SearchContract.Model {
@Override
public void getData(String url, int page, boolean isMain, SearchContract.LoadDataCallback callback) {
if (page != 1)
url = url.contains(Sakura.DOMAIN) ? url + "/?page=" + page: Sakura.DOMAIN + url + "/?page=" + page + Sakura.REDIRECTED.replace("/?", "&");
url = url.contains(Sakura.DOMAIN) ? url + "/?page=" + page: Sakura.DOMAIN + url + "/?page=" + page + Sakura.REDIRECTED.replace("?", "&");
else
url = url.contains(Sakura.DOMAIN) ? url + Sakura.REDIRECTED : Sakura.DOMAIN + url + Sakura.REDIRECTED;
getHtml(url, isMain, callback);
Expand Down

0 comments on commit 6b85249

Please sign in to comment.