Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jiaoyou_doc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyinting
jiaoyou_doc
Commits
1cf8dc38
Commit
1cf8dc38
authored
Aug 26, 2021
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
169b49f9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
+54
-0
剧本对话接口.md
dramaeditor/剧本对话接口.md
+54
-0
No files found.
dramaeditor/剧本对话接口.md
0 → 100644
View file @
1cf8dc38
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment