From d484716b7e88da1f4584d2926863403981513b41 Mon Sep 17 00:00:00 2001 From: wei <1070096495@qq.com> Date: Tue, 3 Sep 2019 10:08:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BD=BF=E7=94=A8=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 77fde43..8a7c313 100644 --- a/README.md +++ b/README.md @@ -9,24 +9,20 @@ dependencies { - implementation 'com.github.wyba:RxHttp:V1.0.0' + implementation 'com.github.wyba:RxHttp:V1.0.1' } Application: - RxHttp.getInstance().init("http://192.168.2.112:8081/", 20 * 1000); + RxHttp.init("http://192.168.2.112:8081/", 20 * 1000); Use: - RxHttp.getInstance().get("book/framebookquery", bookRequest).execute(new CommonCallBack() { - @Override - public void onFinal(BookResponse bookResponse) { - if (bookResponse != null) { - for (BookInfo bookInfo : bookResponse.getData_list()) { - Log.e("queryShelfBook", "\n" + bookInfo.toString()); - } - } - } - }); + RxHttp.post(url, content, new CommonCallBack() { + @Override + public void onFinal(String s) { + + } + });