Commit 1cf8dc38 by 李进峰

update

parent 169b49f9
BaseURL: https://hw-gz26.heyqiwu.cn
BaseURL: https://hw-gz26.heyqiwu.cn
##### 对话
URL: {backUrl}/api/cc/chat/single/bot
METHOD: POST
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
RequestBody:
```
{
"message":"我要吃饭",
"chatKey":"", // chatKey 第一个次为空
"botAccount":"6080626246",
"audio":false
}
{
"message":"开始", // 用户发送的对话
"chatKey":"", // 对话id;第一为空,之后从data.chatKey取
"botAccount":"juben1b0289", // bot帐号
"audio":false // 是否开启音频
}
```
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": {
"dialogList": [
{
"npcName": "老金", // npc名称
"text": "有缘千里来相会,能打过来就是缘分,地址我发给你,你有空可以过来看看。", // 剧情文本
"audioUrl": "http://hw-gz25.heyqiwu.cn:9663/api/audio/cache/juben1b0289/?filename=/juben1b0289/ProTencent17/正常/c7364c5eedaf3c1262dfc4bbcbccc7b2.mp3" // 音频地址
}
],
"chatKey": "O1FI4iP7nNHOcw5dUNwY" // 对话id
}
}
```
\ No newline at end of file
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