优化
This commit is contained in:
@@ -51,6 +51,7 @@ class CronetInterceptor(private val cookieJar: CookieJar) : Interceptor {
|
|||||||
chain.proceed(original)
|
chain.proceed(original)
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
|
e.printOnDebug()
|
||||||
return chain.proceed(original)
|
return chain.proceed(original)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,7 +71,8 @@ val okHttpClient: OkHttpClient by lazy {
|
|||||||
if (!AppConst.isPlayChannel && AppConfig.isCronet) {
|
if (!AppConst.isPlayChannel && AppConfig.isCronet) {
|
||||||
if (Cronet.loader?.install() == true) {
|
if (Cronet.loader?.install() == true) {
|
||||||
Cronet.interceptor?.let {
|
Cronet.interceptor?.let {
|
||||||
builder.addInterceptor(it)
|
//崩溃
|
||||||
|
//builder.addInterceptor(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user