mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
1.2.0
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user