Commit b4f95cd7 by realcaiyizhen

补充控制点接口

parent ecc10bfa
[TOC] [TOC]
...@@ -1224,13 +1224,13 @@ RequestHeaders: ...@@ -1224,13 +1224,13 @@ RequestHeaders:
```json ```json
curl --location 'http://10.0.7.5:8081/api/controlNodePay/check' \ curl --location 'http://10.0.7.5:8081/api/controlNodePay/check' \
--header 'Content-Type: application/json;charset=utf-8' \ --header 'Content-Type: application/json' \
--data '{ --data '{
"channelId":"hwzcnanyouxiaomi-phone-sdk-pro", "channelId":"aianimexnny-phone-sdk-test",
"userId":"123123", "userId":"123123",
"controlId":"wodenver1", "controlId":"xdyc1",
"botAccount":"txgz12botwoshinvernu1102586868845", "botAccount":"txgz12botxindongyisha651523980",
"botName":"我是女儿奴" "botName":"跨越时空的爱恋"
}' }'
``` ```
...@@ -1242,14 +1242,25 @@ curl --location 'http://10.0.7.5:8081/api/controlNodePay/check' \ ...@@ -1242,14 +1242,25 @@ curl --location 'http://10.0.7.5:8081/api/controlNodePay/check' \
| ---- | ------ | -------------------- | | ---- | ------ | -------------------- |
| code | int | 只要不出错,固定1 | | code | int | 只要不出错,固定1 |
| msg | string | 只要不出错,固定成功 | | msg | string | 只要不出错,固定成功 |
| data | object | null | | data | object | |
data的结构,同配置中心的控制点配置
| key | type | description |
| ----------- | ------ | ------------------------------ |
| imgUrl | string | 付费图片 |
| price | float | 付费价格 |
| description | string | 控制点描述 |
| controlId | string | 控制点id |
| type | int | 0:付费,1:广告 |
| payStatus | int | 付费状态,0:未付费,1:已付费 |
### 响应实例 ### 响应实例
```json ```json
{"code":1,"msg":"成功","data":{"imgUrl":"","price":0.01,"description":"遗迹内会藏着什么宝藏呢?快来探索吧!只需扫码付费就能继续体验后续精彩剧情。","controlId":"xdyc1","type":0,"payStatus":0}}
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment