From b4f95cd7ab2334b73f55aa441f10007e3672a12b Mon Sep 17 00:00:00 2001 From: realcaiyizhen <56955287@qq.com> Date: Mon, 6 Nov 2023 11:29:14 +0800 Subject: [PATCH] 补充控制点接口 --- chat_server/chatruntime接口.md | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git "a/chat_server/chatruntime\346\216\245\345\217\243.md" "b/chat_server/chatruntime\346\216\245\345\217\243.md" index ea26e09..3efb390 100644 --- "a/chat_server/chatruntime\346\216\245\345\217\243.md" +++ "b/chat_server/chatruntime\346\216\245\345\217\243.md" @@ -1224,13 +1224,13 @@ RequestHeaders: ```json 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 '{ - "channelId":"hwzcnanyouxiaomi-phone-sdk-pro", - "userId":"123123", - "controlId":"wodenver1", - "botAccount":"txgz12botwoshinvernu1102586868845", - "botName":"我是女儿奴" +"channelId":"aianimexnny-phone-sdk-test", +"userId":"123123", +"controlId":"xdyc1", +"botAccount":"txgz12botxindongyisha651523980", +"botName":"跨越时空的爱恋" }' ``` @@ -1242,14 +1242,25 @@ curl --location 'http://10.0.7.5:8081/api/controlNodePay/check' \ | ---- | ------ | -------------------- | | code | int | 只要不出错,固定1 | | 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 - +{"code":1,"msg":"成功","data":{"imgUrl":"","price":0.01,"description":"遗迹内会藏着什么宝藏呢?快来探索吧!只需扫码付费就能继续体验后续精彩剧情。","controlId":"xdyc1","type":0,"payStatus":0}} ``` -- libgit2 0.27.1