TestApp icon indicating copy to clipboard operation
TestApp copied to clipboard

Android基础开发工具,提供一些便捷方法,并利用RxJava和Retrofit封装了网络请求组件

Results 1 TestApp issues
Sort by recently updated
recently updated
newest added

package com.dev.kit.basemodule.netRequest.util包中,CommonInterceptor 网络请求拦截器,post方法拦截里面getParamContent/** * 获取常规post请求参数*/这个方法抛出异常,无法获取到body里面的参数。我的项目现在post方法参数是,@Body RequestBody body,MediaType.parse("application/x-www-form-urlencoded; charset=utf-8"),MediaType是这个。body参数无法解析出来。body外面是hashmap组织的,现在需要在Interceptor还原成hashmap出来加密,请问大神有没有方法解决?在拦截器里把body参数还原成hashmap?