From 89e35a1933ba40513a96572b27291c0aa65c918c Mon Sep 17 00:00:00 2001
From: Runt <qingingrunt2010@qq.com>
Date: Sat, 11 Oct 2025 10:21:42 +0000
Subject: [PATCH] 框架优化
---
libmvi/src/main/java/com/runt/open/mvi/retrofit/Interceptor/HttpLoggingInterceptor.java | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/libmvi/src/main/java/com/runt/open/mvi/retrofit/Interceptor/HttpLoggingInterceptor.java b/libmvi/src/main/java/com/runt/open/mvi/retrofit/Interceptor/HttpLoggingInterceptor.java
index 72d9512..18ef45b 100644
--- a/libmvi/src/main/java/com/runt/open/mvi/retrofit/Interceptor/HttpLoggingInterceptor.java
+++ b/libmvi/src/main/java/com/runt/open/mvi/retrofit/Interceptor/HttpLoggingInterceptor.java
@@ -5,6 +5,7 @@
import com.runt.open.mvi.retrofit.net.NetWorkCost;
import com.runt.open.mvi.retrofit.net.NetWorkListener;
import com.runt.open.mvi.retrofit.utils.HttpPrintUtils;
+import com.runt.open.mvi.retrofit.utils.RSAUtils;
import org.json.JSONArray;
import org.json.JSONException;
@@ -205,7 +206,16 @@
if (contentLength != 0) {
String str = buffer.clone().readString(charset);
if(str.trim().indexOf("{") == 0) {
- logArrays.add(new JSONObject(str).toString(4));
+ JSONObject object = new JSONObject(str);
+ if(object.has("body")){
+ try {
+ logArrays.add(new JSONObject(RSAUtils.decryptVerify(object.getString("body"))).toString(4));
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ }else{
+ logArrays.add(object.toString(4));
+ }
}else if(str.trim().indexOf("[") == 0) {
logArrays.add(new JSONArray(str).toString(4));
}else{
--
Gitblit v1.9.1