|
|
@@ -20,6 +20,11 @@ public class HttpClient {
|
|
|
public static final String BASE_NET_URL = "http://minxin.xazhima.com/";
|
|
|
|
|
|
/*
|
|
|
+ * 网页版线上环境
|
|
|
+ */
|
|
|
+// public static final String BASE_NET_URL = "http://www.rcmxw.com/";
|
|
|
+
|
|
|
+ /*
|
|
|
* 测试环境
|
|
|
*/
|
|
|
public static final String BASE_URL = "http://rongzhi110.xazhima.com/api/minxin/v1.0/";
|
|
|
@@ -27,14 +32,9 @@ public class HttpClient {
|
|
|
/*
|
|
|
* 线上环境
|
|
|
*/
|
|
|
- // public static final String BASE_URL = "http://www.xayuanju.com/api/v1.0/";
|
|
|
+// public static final String BASE_URL = "http://www.xayuanju.com/api/v1.0/";
|
|
|
|
|
|
|
|
|
- /*
|
|
|
- * apizza自定义接口测试环境
|
|
|
- */
|
|
|
- public static final String MOCK_URL = "http://www.doclever.cn:8090/mock/5b2e55a5362f91495c0842ae/";
|
|
|
-
|
|
|
|
|
|
|
|
|
private static volatile HttpClient mHttpClientInstance;
|
|
|
@@ -73,13 +73,6 @@ public class HttpClient {
|
|
|
.build();
|
|
|
|
|
|
|
|
|
- mHttpClientInstance.mockRetrofit = new Retrofit.Builder()
|
|
|
- .baseUrl(MOCK_URL)
|
|
|
- .client(clientBuilder.build())
|
|
|
- .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
|
|
|
- .addConverterFactory(GsonConverterFactory.create())
|
|
|
- .build();
|
|
|
-
|
|
|
|
|
|
}
|
|
|
}
|