JessYanCoding / RetrofitUrlManager

🔮 Let Retrofit support multiple baseUrl and can be change the baseUrl at runtime (以最简洁的 Api 让 Retrofit 同时支持多个 BaseUrl 以及动态改变 BaseUrl).
Apache License 2.0
2.18k stars 310 forks source link

大神,这是有bug么? #10

Closed ChineseBoyLY closed 6 years ago

ChineseBoyLY commented 6 years ago

image

RetrofitUrlManager.getInstance().putDomain("douban", "https://api.douban.com")

@Headers({"Domain-Name: douban"}) // 加上 Domain-Name header @GET("/v2/book/{id}") Call getBook(@Path("id") int id);

JessYanCoding commented 6 years ago

网络的问题, 和框架没有关系