From de48c6c071afac64430addde3b2aa87f2830c1fe Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 20 Jan 2024 23:34:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E8=B0=83=E8=AF=95=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E6=B7=B7=E6=B7=86=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/nnbc123/core/interceptor/PathInterceptor.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/nnbc123/core/interceptor/PathInterceptor.kt b/core/src/main/java/com/nnbc123/core/interceptor/PathInterceptor.kt index 760bd6950..6875fc34a 100644 --- a/core/src/main/java/com/nnbc123/core/interceptor/PathInterceptor.kt +++ b/core/src/main/java/com/nnbc123/core/interceptor/PathInterceptor.kt @@ -3,7 +3,6 @@ package com.nnbc123.core.interceptor import android.util.Log import com.nnbc123.core.Env import com.nnbc123.core.UriProvider -import com.nnbc123.library.utils.codec.DESUtils import okhttp3.Interceptor import okhttp3.Response @@ -28,11 +27,11 @@ class PathInterceptor : Interceptor { } != null) { return chain.proceed(request) } - val newPath = DESUtils.DESAndBase64(path) + val newPath = "/${path.drop(1).reversed()}" return if (newPath.isNullOrEmpty()) { chain.proceed(request) } else { - val newUrl = url.newBuilder().encodedPath("/$newPath").build() + val newUrl = url.newBuilder().encodedPath(newPath).build() if (Env.isDebug()) { Log.d("PathInterceptor", "$url -> $newUrl") }