Pārlūkot izejas kodu

1.拦截器中XH-UserId添加测试值

master
wangwanlei pirms 10 mēnešiem
vecāks
revīzija
447262f14a

+ 1
- 1
corelib/src/main/java/com/xhly/corelib/network/ResponseInterceptor.kt Parādīt failu

@@ -23,7 +23,7 @@ class ResponseInterceptor : Interceptor {
23 23
             //TODO 需要替换token
24 24
          /*   requestBuilder.header("Authorization", "Bearer ${Const.token}")
25 25
             requestBuilder.header("Accept-Language", "zh-Hans")*/
26
-            requestBuilder.header("XH-UserId","")
26
+            requestBuilder.header("XH-UserId","1")
27 27
             request = requestBuilder.build()
28 28
             val originalResponse = chain.proceed(request)
29 29
             val responseBody = originalResponse.body

Notiek ielāde…
Atcelt
Saglabāt