完成授书游戏节点功能

This commit is contained in:
2024-11-21 17:23:07 +08:00
parent 4ea0af5bd7
commit 88f7d55930
11 changed files with 240 additions and 123 deletions

26
game.md
View File

@@ -36,13 +36,37 @@
## 神女授书4
待定
参照 [请求响应文档](https://www.emqx.com/zh/blog/mqtt5-request-response),发送附带`ResponseTopic`,并订阅`ResponseTopic`
,才能接收到响应结果
### RequestPayload
```json lines
{
// 发卡执行时间,单位秒
"action": 0,
// 等待时间,单位秒
"wait": 10
}
```
### ResponsePayload
```json lines
{
// 空卡设备数量
"empty": 0,
// 错误设备数量
"error": 0,
// 发卡是否成功1为成功0为失败
"out_ok": 0
}
```
若`out_ok``empty``error`都为`0`,很有可能两台机器发卡口都被堵住了,需要人工处理。
发卡口堵住不属于`error`,不会在`error`里计数体现。
## 青云龙台5
待定