合并代码

master
Z 4 years ago
parent e13acb46ff
commit 14c40c159e
  1. 2
      app/src/main/java/com/novel/read/constant/AppConst.kt
  2. 2
      app/src/main/java/com/novel/read/network/ServiceCreator.kt

@ -35,8 +35,6 @@ object AppConst {
}
const val notificationIdRead = 1144771
const val notificationIdAudio = 1144772
const val notificationIdWeb = 1144773
const val notificationIdDownload = 1144774

@ -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()

Loading…
Cancel
Save