|
@@ -3,6 +3,7 @@ package com.xhly.corelib.network
|
3
|
3
|
import android.annotation.SuppressLint
|
4
|
4
|
import android.util.Log
|
5
|
5
|
import com.xhly.corelib.Const
|
|
6
|
+import com.xhly.corelib.utils.LogShow
|
6
|
7
|
import io.reactivex.internal.subscribers.DeferredScalarSubscriber
|
7
|
8
|
import io.reactivex.schedulers.Schedulers
|
8
|
9
|
import okhttp3.OkHttpClient
|
|
@@ -37,12 +38,12 @@ object RetrofitService {
|
37
|
38
|
val interceptor = HttpLoggingInterceptor { message ->
|
38
|
39
|
try {
|
39
|
40
|
val text: String = URLDecoder.decode(message, "utf-8")
|
40
|
|
- Log.e("OKHttp-----", text)
|
|
41
|
+ LogShow("OKHttp-----"+text)
|
41
|
42
|
} catch (t: Exception) {
|
42
|
43
|
try {
|
43
|
44
|
var encode = URLEncoder.encode(message, "utf-8")
|
44
|
45
|
val text: String = URLDecoder.decode(encode, "utf-8")
|
45
|
|
- Log.e("OKHttp-----DEBUG", text)
|
|
46
|
+ LogShow("OKHttp-----DEBUG"+text)
|
46
|
47
|
} catch (e: Exception) {
|
47
|
48
|
t.printStackTrace()
|
48
|
49
|
e.printStackTrace()
|