فهرست منبع

注释掉测试服务地址

Gogs 1 ماه پیش
والد
کامیت
f5f3d4c3c6
1فایلهای تغییر یافته به همراه11 افزوده شده و 8 حذف شده
  1. 11 8
      module_base/src/main/java/com/yc/module_base/net/RequestInterceptor.kt

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

@@ -73,14 +73,17 @@ 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.118")
+            //      .port(8880)
+            //      .build()
+            //  newRequestBuilder.url(localUrl)
+            //  serverPath = "${localUrl.scheme}://${localUrl.host}/".trim()
+            //  Log.d(TAG, "rewrite to local: ${apiPath}")
+
+
             val token = LiveSession.getUserToken()
             if (token.isNotEmpty()) {
                 newRequestBuilder.header("token", token)