From 6d6f00d2ca621cc72cbd22cba955b29b574f290b Mon Sep 17 00:00:00 2001 From: nining377 Date: Tue, 28 Jul 2020 21:08:01 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E5=A4=8D1.0.4=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E6=8B=A6=E6=88=AA=E8=AF=84=E8=AE=BA=E5=8C=BA=E5=B9=BF?= =?UTF-8?q?=E5=91=8A=E5=AF=BC=E8=87=B4=E6=97=A0=E6=B3=95=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E5=9B=9E=E5=A4=8D=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/build.gradle | 4 ++-- app/src/main/java/com/raincat/dolby_beta/hook/EAPIHook.java | 5 +++-- app/src/main/res/values/strings.xml | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index d3c1ce4f..a72d2325 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId "com.raincat.dolby_beta" minSdkVersion 14 targetSdkVersion 23 - versionCode 104 - versionName "1.0.4" + versionCode 105 + versionName "1.0.5" } buildTypes { release { diff --git a/app/src/main/java/com/raincat/dolby_beta/hook/EAPIHook.java b/app/src/main/java/com/raincat/dolby_beta/hook/EAPIHook.java index 2ac245c5..22438404 100644 --- a/app/src/main/java/com/raincat/dolby_beta/hook/EAPIHook.java +++ b/app/src/main/java/com/raincat/dolby_beta/hook/EAPIHook.java @@ -63,9 +63,10 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable { } if (modified.contains("\\/api\\/v1\\/content\\/exposure\\/comment\\/banner\\/get")) { JSONObject jsonObject = new JSONObject(modified); - jsonObject.put("/api/v1/content/exposure/comment/banner/get", "\"code\":200,\"data\":{\"count\":0,\"offset\":999999999,\"records\":[]},\"message\":\"\""); + jsonObject.put("/api/v1/content/exposure/comment/banner/get", "{-\"code-\":200,-\"data-\":{-\"count-\":0,-\"offset-\":999999999,-\"records-\":[]},-\"message-\":-\"-\"}"); modified = jsonObject.toString(); - modified = modified.replace("\\\\\\", ""); + modified = modified.replace("-\\", "").replace("\"\\/api\\/v1\\/content\\/exposure\\/comment\\/banner\\/get\":\"", "\"\\/api\\/v1\\/content\\/exposure\\/comment\\/banner\\/get\":") + .replace("\"message\":\"\"}\"", "\"message\":\"\"}"); } } else if (path.contains("point/dailyTask")) { if (original.contains("200") && !original.contains("msg")) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3ed9a0f5..57cc5b84 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -103,7 +103,7 @@ compatible_appver 兼容版本 - 4.3.1,6.0.0,6.4.3~7.1.80 + 4.3.1,6.0.0,6.4.3~7.2.10 github github源码