对接文档
This commit is contained in:
10
API对接文档.md
10
API对接文档.md
@@ -10,9 +10,7 @@
|
||||
|
||||
由部署方提供:
|
||||
|
||||
- 测试环境:`https://dice-api.yuliao666.com`
|
||||
|
||||
[//]: # (- 生产环境:`https://api.example.com`)
|
||||
- 测试环境:`https://dice-api.yuliao666.top`
|
||||
|
||||
下文所有路径均为相对路径,如:`/api/v1/getGameUrl`。
|
||||
|
||||
@@ -70,7 +68,9 @@
|
||||
| secret | 是 | string | 双方约定的密钥(服务端配置 `xF75oK91TQj13s0UmNIr1NBWMWGfflNO`) |
|
||||
| time | 是 | int/string | Unix 时间戳(秒),服务端会做时间容忍校验 |
|
||||
| signature | 是 | string | 签名:`md5(agent_id + secret + time)` |
|
||||
|
||||
- **agent_id**:通过后台获取系统管理-用户管理-代理ID
|
||||
- **secret**:xF75oK91TQj13s0UmNIr1NBWMWGfflNO(服务器配置)
|
||||
- **后台地址**:https://dice.yuliao666.top 账号: zhuguan 密码:123456
|
||||
#### 签名规则
|
||||
|
||||
- **签名字符串**:直接拼接 `agent_id.secret.time`(无分隔符)
|
||||
@@ -135,7 +135,7 @@ signature = md5(agent_id + secret + time)
|
||||
"code": 200,
|
||||
"message": "success",
|
||||
"data": {
|
||||
"url": "https://dice-game.xxx/?token=...&lang=zh"
|
||||
"url": "https://dice-game.yuliao666.top/?token=...&lang=zh"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user