这是示例代码:
public interface HttpInterface{
@POST("http://www.test.com/test/1.0")
Observable<BaseEntity<DataBean>> test();
}
HashMap<String, String> commonParams = new HashMap<>();
commonParams.put("testkey", "testvalue");
ParamsAddInterceptor paramsAddInterceptor = new
ParamsAddInterceptor(commonParams);
RxRetrofitUtil.init(paramsAddInterceptor);
RxRetrofitUtil.getInstance()
.getHttpInterface(HttpInterface.class)
.test();
使用示例代码,在拦截器中添加的常见参数未在请求中添加