![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Retrofit+OkHttp
Zhang_Paradise
这个作者很懒,什么都没留下…
展开
-
Unexpected char 0x6559 at 0 in token value:
出现这个问题的原因是:请求头不能携带中文,我这边出现的原因是:在登录中设置token的时候设置错了参数,后台也没有明显的提示,所以不容易发现。原创 2021-01-16 09:43:33 · 1381 阅读 · 0 评论 -
Retrofit动态切换baseUrl
使用retrofit动态切换baseUrl 通过okhttp自定义拦截器切换baseUrl一开始怎么都不行,一直拿到都是旧 Url 怎么试都不行没有改之前//线上public static final String BASE_SERVER_URL="http://124.165.205.48:20005/app/api/";//安保系统public static final String BASE_SECURITY_SERVER_URL="http://124.165.205..原创 2020-12-30 17:12:22 · 1043 阅读 · 1 评论