feat: 优化

pull/219/head
kunfei 5 years ago
parent 2b187b6395
commit 4ea0bc8937
  1. 6
      app/src/main/java/io/legado/app/help/http/HttpHelper.kt

@ -43,7 +43,11 @@ object HttpHelper {
val response = getApiService<HttpGetApi>(baseUrl, encode)
.get(url, mapOf())
.execute()
return response.body()
return if (response.body() != null) {
response.body()
} else {
response.errorBody().toString()
}
}
return null
}

Loading…
Cancel
Save