public class AddCookiesInterceptor implements Interceptor {
@Override
public Response intercept(Chain chain) throws IOException {
Request.Builder builder = chain.request().newBuilder();
HashSet<String> preferences = (HashSet) MyApplication.getContext().getSharedPreferences("config",
MyApplication.getContext().MODE_PRIVATE).getStringSet("cookie", null);
if
超简单添加cookie
最新推荐文章于 2024-08-02 10:55:36 发布