retrofit servicecode 和 baseurl 替换问题 修改

it2022-05-05  176

package com.driverdispatch.www.webtool;

import android.util.Log;

import com.driverdispatch.www.util.Property; import com.google.gson.GsonBuilder;

import java.io.IOException; import java.nio.charset.Charset; import java.nio.charset.UnsupportedCharsetException; import java.util.List; import java.util.concurrent.TimeUnit;

import okhttp3.HttpUrl; import okhttp3.Interceptor; import okhttp3.MediaType; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; import okhttp3.ResponseBody; import okio.Buffer; import okio.BufferedSource; import retrofit2.Retrofit; import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;

/**

Created by wenleitao on 2016/8/23. */ public class RetrofitManager {

private static final long CACHE_STALE_SEC = 60 * 60 * 24 * 2; //查询缓存的Cache-Control设置,为if-onl


最新回复(0)