Bläddra i källkod

1.修改日志打印为LogShow。

0423x6e6f
wangwanlei 4 dagar sedan
förälder
incheckning
4b49f9ce5e
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3
    2
      corelib/src/main/java/com/xhly/corelib/network/RetrofitService.kt

+ 3
- 2
corelib/src/main/java/com/xhly/corelib/network/RetrofitService.kt Visa fil

@@ -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()

Laddar…
Avbryt
Spara