请求失败
Opened this issue · 2 comments
dxl-enter commented
我设置的
public static String BASE_URL = "https://api.douban.com/v2/movie/";
@get("top250")
Observable getDataForMap(@QueryMap Map<String,Integer> map);
在MainActivity中调用getData后请求失败(保证参数已经传进去)
bigeyechou commented
亲,你去返回的next方法,也就是成功失败回调的那个方法修改一下返回参数的拦截重新包装一下,我的例子已经不是豆瓣的了
bigeyechou commented
查了下这个接口, "https://api.douban.com/v2/movie/top250" 豆瓣的这个接口需要在重新配置okHttpBuilder.addInterceptor( );请求头需要添加token和userid的头信息。