From 14c40c159eec2b8326fdd2875b689b3c1192cf95 Mon Sep 17 00:00:00 2001 From: Z <390057892@qq.com> Date: Tue, 6 Apr 2021 22:17:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/novel/read/constant/AppConst.kt | 2 -- app/src/main/java/com/novel/read/network/ServiceCreator.kt | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/com/novel/read/constant/AppConst.kt b/app/src/main/java/com/novel/read/constant/AppConst.kt index 8f27394..c6f1733 100644 --- a/app/src/main/java/com/novel/read/constant/AppConst.kt +++ b/app/src/main/java/com/novel/read/constant/AppConst.kt @@ -35,8 +35,6 @@ object AppConst { } const val notificationIdRead = 1144771 - const val notificationIdAudio = 1144772 - const val notificationIdWeb = 1144773 const val notificationIdDownload = 1144774 diff --git a/app/src/main/java/com/novel/read/network/ServiceCreator.kt b/app/src/main/java/com/novel/read/network/ServiceCreator.kt index 3a9b62a..0548a2e 100644 --- a/app/src/main/java/com/novel/read/network/ServiceCreator.kt +++ b/app/src/main/java/com/novel/read/network/ServiceCreator.kt @@ -145,7 +145,7 @@ object ServiceCreator { val checkSha = MYGSON.toJson(CheckSumDTO(AppConst.AppId,nonce,time,checkSum)) val request = original.newBuilder().apply { header("model", "Android") -// header("checkSumDTO", checkSha) + header("checkSumDTO", checkSha) header("If-Modified-Since", URLEncoder.encode("${Date()}", "utf-8")) header("User-Agent", System.getProperty("http.agent") ?: "unknown") }.build()