Skip to content

Commit 9bc102f

Browse files
committed
update README.md
1 parent 903f82c commit 9bc102f

File tree

2 files changed

+68
-1
lines changed

2 files changed

+68
-1
lines changed

README.md

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ window.location.href = "pocketeos://?param='%7B%0A%20%20%22action%22%20:%20%22lo
5151
5252
```
5353

54-
⚠️:web调用iOS端PE所用参数需与iOSPESDK保持一致
54+
⚠️:**web调用iOS端PE所用参数需与iOSPESDK保持一致 具体参数说明请查看PESDK注释**
5555

5656
### 回调结果处理
5757

@@ -65,7 +65,74 @@ window.location.href = "pocketeos://?param='%7B%0A%20%20%22action%22%20:%20%22lo
6565
}
6666
```
6767

68+
### 回调结果示例
69+
70+
####取消/失败
71+
72+
```json
73+
{
74+
//根据action判断行为
75+
"action": "login/transfer/pushTransactions",
76+
"message": "Cancel/Failre",
77+
"protocol": "pe_sdk",
78+
"ref": "PocketECO",
79+
"serialNumber": "app_123452312121",
80+
"version": "1.0"
81+
}
82+
```
83+
84+
85+
86+
#### login成功
87+
88+
```json
89+
{
90+
account = "zhoiyingbind",
91+
ref = "PocketECO",
92+
protocol = "pe_sdk",
93+
action = "login",
94+
result = 1,
95+
serialNumber = "10001",
96+
public_key = "EOS5T4N5nMpV6hR8BctkAFoL3mZyyuRrW6dpZVdBA8t3MkByB3ouV",
97+
version = "1.0",
98+
sign = "SIG_K1_KknA1Lq8YrpP3GBgSd8vXyihxvgdgipwC4y3kKp3MraWKXqaj5fJs8cza3fsQ5yUzy2PfTpEWKoJoZNw55qdYS1KrVS5TZ",
99+
timestamp = 1553223454310,
100+
}
101+
```
68102

69103

70104

105+
#### transfer成功
106+
107+
```json
108+
{
109+
action = "transfer",
110+
ref = "PocketECO",
111+
protocol = "pe_sdk",
112+
serialNumber = "10002",
113+
result = 1,
114+
message = "ok",
115+
version = "1.0",
116+
timestamp = 1553223694214,
117+
txID = "62d14716681197f80950001b22522a00202427d216d25c4725da3ea44427f486",
118+
}
119+
```
120+
121+
122+
123+
#### pushTransactions成功
124+
125+
```json
126+
{
127+
action = "pushTransactions",
128+
ref = "PocketECO",
129+
protocol = "pe_sdk",
130+
serialNumber = "10003",
131+
result = 1,
132+
message = "ok",
133+
version = "1.0",
134+
timestamp = 1553223802747,
135+
txID = "7849fd2d77c063b0bdc3a73c9f1472eaf83e3a00cd7eae4cdef4461ef2e30093",
136+
}
137+
```
71138

0 commit comments

Comments
 (0)