Commit a41f4c00 by 李进峰

update

parent f4bc24a1
##### 单BOT对话接口
URL: http://api-3d-game.heyqiwu.cn/api/open/v1/chat
METHOD: POST
RequestHeaders:
| key | value |
| :----------- | :------------: |
| Content-Type | application/json;charset=utf-8 |
| App-Channel-Id | DEFAULT(选填) |
RequestBody:
```
{
"uid":"TEST0",
"title":"小狗小白",
"msg":"开始",
"chatKey": "jiaoyou-3d-game-testTEST0@@@gz25bot0806xiaogouxiaobaiqu012170840@@@@vlonIxdNXyfY56yn01rk" // 开始一段对话没有,后续需要取data.chatKey作为多轮对话
}
```
responseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": {
"chatKey": "jiaoyou-3d-game-testTEST0@@@gz25bot0806xiaogouxiaobaiqu012170840@@@@vlonIxdNXyfY56yn01rk",
"plotImgUrl": "",
"bgmUrl": "",
"dialogList": [
{
"npcName": "林老师",
"text": "小朋友你好,我是爱讲故事的林老师。我们今天要讲的是小狗小白的故事。老师讲完一段故事,就会问你一个问题。你能做到认真听讲吗?",
"audioUrl": "http://api-pre.heyqiwu.cn:9663/api/audio/cache/gz25bot0806xiaogouxiaobaiqu012170840/?filename=/gz25bot0806xiaogouxiaobaiqu012170840/record/林老师/e653af857401be16d60d50c3f244aa91.mp3"
}
]
}
}
```
\ 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