Runt
2026-04-28 d04b89a739078d36060b4a3af0779470327b40ab
libmvi/src/main/java/com/runt/open/mvi/retrofit/converter/DecryptGsonResponseBodyConverter.java
@@ -51,10 +51,10 @@
            response = decryptJsonStr(val);//解密
        } catch (NoSuchAlgorithmException | InvalidKeySpecException e) {
            e.printStackTrace();
            response = "{\"code\":412,\"message\":\""+"解密数据出错"+e.getMessage()+"\"}";
            response = "{\"code\":412,\"msg\":\""+"解密数据出错"+e.getMessage()+"\"}";
        } catch (JSONException e) {
            e.printStackTrace();
            response = "{\"code\":414,\"message\":\"非标准json\"}";
            response = "{\"code\":414,\"msg\":\"非标准json\"}";
        }catch (Exception e){
            e.printStackTrace();
            JsonReader jsonReader = gson.newJsonReader(value.charStream());
@@ -86,7 +86,7 @@
        }
        if(TextUtils.isEmpty(body)){
        }else if(body.indexOf("{") == 0) {
        }else if(body.indexOf("{") == 0 && body.indexOf(ENCRYPT) > -1) {
            body = RSAUtils.decryptVerify(body,ENCRYPT);
        }
        return transHump? GsonUtils.toHumpJson(body):body;