增加网络模块
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user