Browse Source

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

master
wangwanlei 10 months ago
parent
commit
447262f14a

+ 1
- 1
corelib/src/main/java/com/xhly/corelib/network/ResponseInterceptor.kt View File

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

Loading…
Cancel
Save