Commit d9245ce1 by 李进峰

update

parent 4850c8b8
...@@ -24,16 +24,16 @@ requestBody: ...@@ -24,16 +24,16 @@ requestBody:
{ {
"userId":"test", // 用户ID "userId":"test", // 用户ID
"message":msg, // 用户说的话 "message":msg, // 用户说的话
"nickname":"test", // 用户别名
"chatKey":"",// 当chatKey为空时chat端会创建一个chatKey,第二次对话将需要在responseBody中取得chatKey "chatKey":"",// 当chatKey为空时chat端会创建一个chatKey,第二次对话将需要在responseBody中取得chatKey
"title":"小狗小白" // BOT标题 "botAccount":"", // bot的帐号
"title":"小狗小白" // bot的标题; 优先级低于botAccount,当botAccount为空时选用当前字段查找作品
} }
``` ```
responseBody: responseBody:
``` ```
{ {
"code": 状态码, 成功时为1, 失败为0 "code": 状态码, 成功时为1,其他表示失败
"dialogList":[ "dialogList":[
{ {
"npcName": 角色名称 "npcName": 角色名称
...@@ -55,9 +55,17 @@ responseBody: ...@@ -55,9 +55,17 @@ responseBody:
"botPostData": // bot后台直接给前端的数据,如果没有就是空 "botPostData": // bot后台直接给前端的数据,如果没有就是空
"service": "OTHER", // 默认为OTHER,领域标识 "service": "OTHER", // 默认为OTHER,领域标识
} }
// 其他状态码
code: 0 可能情况:服务器异常;获取语音出错
code: 10005 字段错误
code: 20002 权限不足 code: 20002 权限不足
code: 50001 作品不存在 code: 50001 作品不存在
code: 50002 请求数据错误 code: 50002 请求数据错误
code: 60001 内部系统接口调用异常
code: 100001 引擎调用失败!
``` ```
###### responseType的具体操作 ###### responseType的具体操作
......
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