From 8c55498e37a8db825f599a781da315145a519f69 Mon Sep 17 00:00:00 2001 From: Jenly Date: Mon, 4 Dec 2017 20:08:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=97=A5=E5=BF=97=E6=8B=A6?= =?UTF-8?q?=E6=88=AA=E3=80=81=E6=96=B9=E4=BE=BF=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b4f191e..db10618 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,10 @@ public class Api { } private static ApiService getApiService(){ - return ApiManager.getInstance().getApiService(ApiService.class); + if(apiService == null){ + apiService = ApiManager.getInstance().getApiService(ApiService.class); + } + return apiService; } public static void getApiAddr(String ip, SimpleCallback callback){ @@ -90,19 +93,19 @@ public class Api { 更多使用详情,请查看[app](app)中的源码使用示例 ## 关于我 - Name: Jenly + Name: Jenly - Email: jenly1314@gmail.com / jenly1314@vip.qq.com + Email: jenly1314#gmail.com / jenly1314#vip.qq.com - CSDN: http://blog.csdn.net/jenly121 + CSDN: jenly121 - Github: https://github.com/jenly1314 + Github: jenly1314 微信公众号: ![公众号](http://olambmg9j.bkt.clouddn.com/jenly666.jpg) - 加入QQ群: [20867961](http://shang.qq.com/wpa/qunwpa?idkey=8fcc6a2f88552ea44b1411582c94fd124f7bb3ec227e2a400dbbfaad3dc2f5ad) + 加入QQ群: 20867961