左晓为主开发手持机充值管理机
zuoxiao
2025-03-07 0ec9693c39a910233fc186a8cefab9f61030df78
generallibrary/src/main/java/com/dayu/general/net/MyIntercepterApplication.kt
File was renamed from generallibrary/src/main/java/com/dayu/general/net/MyInercepterApplication.kt
@@ -1,7 +1,5 @@
package com.dayu.general.net
import android.text.TextUtils
import com.dayu.qiheonlinelibrary.QHOnLineApplication
import com.tencent.bugly.crashreport.CrashReport
import okhttp3.Interceptor
import okhttp3.Protocol
@@ -16,7 +14,7 @@
 * Author: zuo
 * Date: 2025-03-06
 */
class MyInercepterApplication :Interceptor{
class MyIntercepterApplication :Interceptor{
    @Throws(IOException::class)
    override fun intercept(chain: Interceptor.Chain): Response {
@@ -47,9 +45,7 @@
            if (request.method == "GET") {
                builder.url(request.url.toString())
            } else {
                if (!TextUtils.isEmpty(QHOnLineApplication.getInstance().tokenStr)) {
                    builder.addHeader("Token-Cloud", QHOnLineApplication.getInstance().tokenStr)
                }
            }
            return builder.build()
        } catch (e: Exception) {