feat: 优化代码

pull/105/head
kunfei 5 years ago
parent 41110a55a1
commit c797e280d7
  1. 2
      app/src/main/java/io/legado/app/help/http/HttpHelper.kt

@ -48,7 +48,7 @@ object HttpHelper {
return null
}
suspend fun simpleGetSync(url: String, encode: String? = null): String? {
suspend fun simpleGetAsync(url: String, encode: String? = null): String? {
NetworkUtils.getBaseUrl(url)?.let { baseUrl ->
val response = getApiService<HttpGetApi>(baseUrl, encode)
.getAsync(url, mapOf())

Loading…
Cancel
Save