|
|
@@ -20,7 +20,6 @@ import com.grkj.iscs_mars.model.Token
|
|
|
import com.grkj.iscs_mars.model.UrlConsts
|
|
|
import com.grkj.iscs_mars.model.vo.FileStreamReqParam
|
|
|
import com.grkj.iscs_mars.util.log.LogUtil
|
|
|
-import okhttp3.logging.HttpLoggingInterceptor
|
|
|
import java.io.IOException
|
|
|
import java.net.SocketTimeoutException
|
|
|
import java.util.concurrent.TimeUnit
|
|
|
@@ -82,6 +81,7 @@ class NetHttpManager {
|
|
|
return@addSerialPreprocessor
|
|
|
}
|
|
|
itPreChain.task.addHeader("Authorization", Token.fromSp(context!!)?.token)
|
|
|
+ itPreChain.task.addHeader("accept-language", "zh-CN")
|
|
|
itPreChain.proceed()
|
|
|
}
|
|
|
.build()
|
|
|
@@ -156,6 +156,7 @@ class NetHttpManager {
|
|
|
return@setOnResponse
|
|
|
}
|
|
|
baseVO?.msg?.let { itMsg ->
|
|
|
+ LogUtil.i("$urlStr Response error -> $itMsg")
|
|
|
ToastUtils.tip(itMsg)
|
|
|
BusinessManager.sendLoadingEventMsg(null, false)
|
|
|
}
|