Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
udun-cloud authored May 7, 2021
1 parent a64dff6 commit a1d0ae8
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,33 @@
## 二、使用步骤

### 2.1 获取`sdk`
pom文件中引入依赖:

有两种方法

1. 通过本项目自己打包
2. 这里有打包好的`sdk`[直接下载](https://github.com/uduncloud/java-wallet-sdk/releases/tag/v2.0.2)

### 2.2 使用`sdk`,参考 [udun-sdk-java-demo](https://github.com/uduncloud/udun-sdk-java-demo)
1.`sdk`拷贝到项目中
2. `pom.xml`引入`sdk`及其依赖包

```
<dependency>
<groupId>com.udun</groupId>
<artifactId>udun-sdk-java</artifactId>
<version>2.0.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/lib/udun-sdk-java-2.0.2.jar</systemPath>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.4.0</version>
</dependency>
```

### 2.2 使用`sdk`
1. 具体用法参考 https://github.com/uduncloud/java-wallet-sdk/blob/main/src/test/java/UdunclientDemo.java
2. 所有支持方法参考 https://github.com/uduncloud/java-wallet-sdk/blob/main/src/main/java/com/udun/sdk/client/UdunApi.java
3. 示例项目 [udun-sdk-java-demo](https://github.com/uduncloud/udun-sdk-java-demo)
3. 具体用法参考 https://github.com/uduncloud/java-wallet-sdk/blob/main/src/test/java/UdunclientDemo.java
4. 所有支持方法参考 https://github.com/uduncloud/java-wallet-sdk/blob/main/src/main/java/com/udun/sdk/client/UdunApi.java

## 三、关于回调
- [回调接口参考写法](https://github.com/uduncloud/udun-sdk-java-demo/blob/main/src/main/java/com/udun/sdk/controller/CallBackController.java)
Expand Down

0 comments on commit a1d0ae8

Please sign in to comment.