diff --git "a/dramaeditor/\345\211\247\346\234\254\345\257\271\350\257\235\346\216\245\345\217\243.md" "b/dramaeditor/\345\211\247\346\234\254\345\257\271\350\257\235\346\216\245\345\217\243.md" new file mode 100644 index 0000000..11c3dbb --- /dev/null +++ "b/dramaeditor/\345\211\247\346\234\254\345\257\271\350\257\235\346\216\245\345\217\243.md" @@ -0,0 +1,52 @@ +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