feat: 优化

pull/219/head
kunfei 5 years ago
parent 57543276b1
commit 49406206e6
  1. 6
      app/src/main/java/io/legado/app/help/http/HttpHelper.kt

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

Loading…
Cancel
Save