|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
package com.common.commonlib.net
|
|
|
|
|
|
|
|
|
|
import com.common.commonlib.net.interceptor.BaseUrlInterceptor
|
|
|
|
|
import com.common.commonlib.net.interceptor.HttpCommonInterceptor
|
|
|
|
|
import com.common.commonlib.utils.BaseUtils
|
|
|
|
|
import okhttp3.Interceptor
|
|
|
|
|
import okhttp3.OkHttpClient
|
|
|
|
@ -61,14 +60,14 @@ object RequestManager {
|
|
|
|
|
.client(builder.build())
|
|
|
|
|
.addCallAdapterFactory(RxJava2CallAdapterFactory.create())
|
|
|
|
|
.addConverterFactory(GsonConverterFactory.create())
|
|
|
|
|
.baseUrl("https://www.wanandroid.com")
|
|
|
|
|
.baseUrl("https://www")
|
|
|
|
|
.build()
|
|
|
|
|
} else {
|
|
|
|
|
mRetrofit = Retrofit.Builder()
|
|
|
|
|
.client(builder.build())
|
|
|
|
|
.addCallAdapterFactory(RxJava2CallAdapterFactory.create())
|
|
|
|
|
.addConverterFactory(GsonConverterFactory.create())
|
|
|
|
|
.baseUrl("https://www.wanandroid.com")
|
|
|
|
|
.baseUrl("https://www")
|
|
|
|
|
.build()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|