Runt
2025-08-28 c740f3b8e9ede62b5fbcd2a8b03b834dd35fdec5
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{