|
|
@@ -1,6 +1,7 @@
|
|
|
package com.yingyangfly.baselib.net
|
|
|
|
|
|
import com.localebro.okhttpprofiler.OkHttpProfilerInterceptor
|
|
|
+import com.yingyangfly.baselib.config.AccountConfig
|
|
|
import com.yingyangfly.baselib.net.convert.GsonConverterFactory
|
|
|
import com.yingyangfly.baselib.utils.User
|
|
|
import okhttp3.OkHttpClient
|
|
|
@@ -54,7 +55,9 @@ object BaseNetWork {
|
|
|
response
|
|
|
}
|
|
|
builder.addInterceptor(OkHttpProfilerInterceptor())
|
|
|
-// builder.addInterceptor(LoggingInterceptor())
|
|
|
+ if (AccountConfig.DEBUG) {
|
|
|
+ builder.addInterceptor(LoggingInterceptor())
|
|
|
+ }
|
|
|
return builder.build()
|
|
|
}
|
|
|
|