Skip to content

Commit 50b13b3

Browse files
committed
更新REAME.md
1 parent 0bda9c5 commit 50b13b3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,20 @@ for Maven, add the following sections to your pom.xml (replacing $LATEST_VERSION
3535

3636
## Usage
3737

38-
Create an UDFS instance with:
39-
```testnet
38+
environment configuration:
39+
```
40+
testnet environment:
4041
url=http://test.api.udfs.one:15001
4142
```
42-
```formal
43+
```
44+
formal environment:
4345
url=http://api.udfs.one:15001
4446
```
4547

4648

4749
To add a file and bakeup other masternode use (the push method returns a list of merklenodes, in this case there is only one element):
4850
```Java
49-
String filePath = "C:\\Users\\Allen\\Desktop\\certificate\\1.png";
51+
String filePath = "C:\\Users\\Allen\\Desktop\\certificate\\1.png";
5052
String url="http://test.api.udfs.one:15001/api/v0/add";
5153
String type="add";
5254
UdfsDevTools tools = new UdfsDevTools(1000, "", "", filePath, "");
@@ -57,7 +59,7 @@ To add a file and bakeup other masternode use (the push method returns a list of
5759

5860
To push a byte[] use:
5961
```Java
60-
String filePath = "C:\\Users\\Allen\\Desktop\\certificate\\1.png";
62+
String filePath = "C:\\Users\\Allen\\Desktop\\certificate\\1.png";
6163
String url="http://test.api.udfs.one:15001/api/v0/push";
6264
String type="add";
6365
UdfsDevTools tools = new UdfsDevTools(1000, "", "", filePath, "");

0 commit comments

Comments
 (0)