修改编译错误
This commit is contained in:
@@ -12,8 +12,8 @@ class HeaderNetworkInterceptor : Interceptor {
|
||||
override fun intercept(chain: Interceptor.Chain): Response {
|
||||
val original = chain.request()
|
||||
val request = original.newBuilder()
|
||||
.header("token", MoGoAiCloudClient.getInstance().config.token)
|
||||
.header("thirdPartyAppKey", MoGoAiCloudClient.getInstance().config.thirdPartyAppKey)
|
||||
.header("token", MoGoAiCloudClient.getInstance().aiCloudClientConfig.token)
|
||||
.header("thirdPartyAppKey", MoGoAiCloudClient.getInstance().aiCloudClientConfig.thirdPartyAppKey)
|
||||
.method(original.method(), original.body())
|
||||
.build()
|
||||
return chain.proceed(request)
|
||||
|
||||
Reference in New Issue
Block a user