Selaa lähdekoodia

把测试用的服务地址注释掉

Gogs 1 kuukausi sitten
vanhempi
sitoutus
040448ff0e

+ 8 - 8
module_base/src/main/java/com/yc/module_base/net/RequestInterceptor.kt

@@ -73,14 +73,14 @@ class RequestInterceptor() : com.yc.networklibrary.remote.interceptor.RequestInt
         var serverPath = "${url.scheme}://${url.host}/".trim()
         Log.d(TAG, "intercept url: ${url}")
         if (url.encodedPath.startsWith("/api/share/app/share/")) {
-            val localUrl = url.newBuilder()
-                .scheme("http")
-                .host("192.168.0.112")
-                .port(8880)
-                .build()
-            newRequestBuilder.url(localUrl)
-            serverPath = "${localUrl.scheme}://${localUrl.host}/".trim()
-            Log.d(TAG, "rewrite to local: ${localUrl}")
+            // val localUrl = url.newBuilder()
+            //     .scheme("http")
+            //     .host("192.168.0.112")
+            //     .port(8880)
+            //     .build()
+            // newRequestBuilder.url(localUrl)
+            // serverPath = "${localUrl.scheme}://${localUrl.host}/".trim()
+            // Log.d(TAG, "rewrite to local: ${localUrl}")
             val token = LiveSession.getUserToken()
             if (token.isNotEmpty()) {
                 newRequestBuilder.header("token", token)