Modify: 基类调整

This commit is contained in:
Quyunshuo
2020-08-31 15:23:31 +08:00
parent 48f543c919
commit 13b359ce8c
5 changed files with 13 additions and 5 deletions

View File

@ -17,8 +17,6 @@ import java.util.concurrent.TimeUnit
*/
object NetServiceCreator {
private const val BASE_URL = ""
private const val CONNECT_TIME_OUT = 15L
private const val READ_TIME_OUT = 20L
@ -43,8 +41,8 @@ object NetServiceCreator {
private val retrofit by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) {
Retrofit.Builder()
.baseUrl(BASE_URL)
.addConverterFactory(GsonConverterFactory.create()) // Gson转换器
.baseUrl("")
.addConverterFactory(GsonConverterFactory.create()) // Gson转换器
.client(okHttpClient)
.build()
}