Skip to content

Commit ca32288

Browse files
committed
docs: update API docs
1 parent f8cc63f commit ca32288

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ build
88
logs
99
data
1010
/web/node_modules
11+
cmd.md

docs/API.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,13 @@ One API 使用 JSON 格式进行请求和响应。
4141
"quota": 100000,
4242
"remark": "充值 100000 额度"
4343
}
44-
```
44+
```
45+
46+
## 其他
47+
### 充值链接上的附加参数
48+
One API 会在用户点击充值按钮的时候,将用户的信息和充值信息附加在链接上,例如:
49+
`https://example.com?username=root&user_id=1&transaction_id=4b3eed80-55d5-443f-bd44-fb18c648c837`
50+
51+
你可以通过解析链接上的参数来获取用户信息和充值信息,然后调用 API 来为用户充值。
52+
53+
注意,不是所有主题都支持该功能,欢迎 PR 补齐。

0 commit comments

Comments
 (0)