增加网络模块

This commit is contained in:
zhangyuanzhen
2019-12-29 16:09:22 +08:00
parent 9b93caefda
commit 2e705c9c9c
4 changed files with 81 additions and 2 deletions

View File

@@ -17,7 +17,6 @@ public final class RetrofitFactory {
public static synchronized Retrofit getInstance( String baseUrl) {
Retrofit target = sRpcServiceMap.get(baseUrl);
if(target == null){
target = new Retrofit.Builder().
client(OkHttpFactory.getInstance()).
@@ -27,7 +26,6 @@ public final class RetrofitFactory {
build();
sRpcServiceMap.put(baseUrl,target);
}
return target;
}