From 433ec1a12cb14bf67440659dd90f777aed9bdaaa Mon Sep 17 00:00:00 2001 From: haleydu <924323178@qq.com> Date: Sat, 18 Jul 2020 12:56:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=BC=AB=E7=94=BB=E5=A0=86?= =?UTF-8?q?=E9=83=A8=E5=88=86=E6=BC=AB=E7=94=BB=E6=97=A0=E6=B3=95=E8=A7=82?= =?UTF-8?q?=E7=9C=8B=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/hiroshi/cimoc/source/MH50.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/hiroshi/cimoc/source/MH50.java b/app/src/main/java/com/hiroshi/cimoc/source/MH50.java index 5c49db04..d5ae0761 100644 --- a/app/src/main/java/com/hiroshi/cimoc/source/MH50.java +++ b/app/src/main/java/com/hiroshi/cimoc/source/MH50.java @@ -136,9 +136,9 @@ private String decrypt(String code) { //根据文件名获取图片url,参考common.js中getChapterImage函数 private String getImageUrlByKey(String key, String domain, String chapter) { - if (Pattern.matches("\\^https?://(images.dmzj.com|imgsmall.dmzj.com)/i", key)) { + if (key.startsWith("http://images.dmzj.com")) { try { - return domain + "/showImage.php?url=" + URLEncoder.encode(key, "utf-8"); + return domain +"/showImage.php?url=" + key; } catch (Exception e) { return null; } @@ -171,7 +171,7 @@ public List parseImages(String html) { for (int i = 0; i != imageListSize; ++i) { String key = imageList.getString(i); String imageUrl = getImageUrlByKey(key, server[1], chapterPath); - + Log.d("hrd imageUrl",imageUrl); list.add(new ImageUrl(i + 1, imageUrl, false)); }