This commit is contained in:
tanghc
2019-04-08 12:27:43 +08:00
parent 842a8a4a0b
commit 45ab847197
7 changed files with 16 additions and 45 deletions

View File

@@ -6,10 +6,10 @@
## sdk-java
开放平台对应的sdk适用于Android。SDK依赖了三个jar包
SDK依赖了三个jar包
- okhttp.jar 用于网络请求
- fastjson-android.jar 用于json处理
- fastjson.jar 用于json处理
- commons-logging.jar 日志处理
### 接口封装步骤
@@ -104,9 +104,10 @@ public void testGet() {
if (response.isSuccess()) {
// 返回结果
System.out.println(response);
System.out.println(String.format("成功response:%s\n响应原始内容:%s",
JSON.toJSONString(response), response.getBody()));
} else {
System.out.println(response);
System.out.println("错误subCode:" + response.getSubCode() + ", subMsg:" + response.getSubMsg());
}
}
```