**测试环境URL**:http://tx-gz14.heyqiwu.cn **生产环境URL**:http://tx-gz11.heyqiwu.cn [TOC] ### 获取剧情分组 **METHOD**: GET **path**: api/platform/design/plot/category **RequestHeaders:** 同创作平台请求header #### 请求param字段说明 | key | type | required | description | | --------- | ------ | -------- | ----------- | | projectId | number | yes | 项目ID | #### 请求body字段说明 | key | type | required | description | | ---- | ---- | -------- | ----------- | | 无 | | | | #### 请求示例 ```js curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/category/?projectId=983' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Accept-Language: zh-CN,zh;q=0.9' \ -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURBM016azFNeklzSW1WNGNDSTZNVGN3TURjME5qY3pNaXdpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLlQ3Y3hNaVZPTm5KOEJIa2p3a19GYnJ5dDZNMFQ1SWZzcWlCcjRmam9lQlk6czAwcGVyczNjcmV0' \ -H 'Connection: keep-alive' \ -H 'Origin: http://localhost:8080' \ -H 'Referer: http://localhost:8080/' \ -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36' \ -H 'botAccount: 4926009641' \ -H 'groupId: 49' \ -H 'mul: true' \ -H 'projectId: 983' \ --compressed \ --insecure ``` #### 响应实例 ```json { "code": 1, "msg": "成功", "data": [ { "id": 2437, "name": "1", "intro": "", "num": "1", "projectId": 983, "imgUrl": "", "bgmUrl": "", "agTaskInfo": { "status": 2 } } ] } ``` ### 获取复制剧情的数据 **METHOD**: GET **path**: api/platform/design/package/plot/move **RequestHeaders:** 同创作平台请求header #### 请求param字段说明 | key | type | required | description | | --------- | ------ | -------- | ----------- | | projectId | number | yes | 项目ID | #### 请求body字段说明 | key | type | required | description | | ---- | ---- | -------- | ----------- | | 无 | | | | #### 请求示例 ```js curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/package/plot/move?projectId=983' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Accept-Language: zh-CN,zh;q=0.9' \ -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURBM016azFNeklzSW1WNGNDSTZNVGN3TURjME5qY3pNaXdpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLlQ3Y3hNaVZPTm5KOEJIa2p3a19GYnJ5dDZNMFQ1SWZzcWlCcjRmam9lQlk6czAwcGVyczNjcmV0' \ -H 'Connection: keep-alive' \ -H 'Origin: http://localhost:8080' \ -H 'Referer: http://localhost:8080/' \ -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36' \ -H 'botAccount: 4926009641' \ -H 'groupId: 49' \ -H 'mul: true' \ -H 'projectId: 983' \ --compressed \ --insecure ``` #### 响应实例 ```json { "code": 1, "msg": "成功", "data": { "plots": [ { "categoryId": 2437, "categoryName": "1", "plotNumIds": [ { "num": "1-1", "plotId": 78278 }, { "num": "1-2", "plotId": 78279 }, { "num": "1-3", "plotId": 78280 }, { "num": "1-4", "plotId": 78281 }, { "num": "1-7", "plotId": 1795547 }, { "num": "1-8", "plotId": 1795560 }, { "num": "1-9", "plotId": 2129686 }, { "num": "1-10", "plotId": 2155042 } ] } ], "games": [ { "category": [ { "name": "1", "id": 3766 }, { "name": "原样复制", "id": -1 } ], "name": "测试语义头词组", "id": 1098 } ] } } ``` ### 跨作品复制 **METHOD**: POST **path**: api/platform/design/bot/data/copy/cross/bot **RequestHeaders:** 同创作平台请求header #### 请求param字段说明 | key | type | required | description | | ---- | ---- | -------- | ----------- | | 无 | | | | #### 请求body字段说明 | key | type | required | description | | ----------------------------- | ------ | -------- | ------------------------------- | | originBotAccount | string | yes | 源作品bot帐号 | | targetBotAccount | string | yes | 目标作品帐号 | | originPlotCategoryIds | array | yes | 源作品bot要拷贝的剧情分类ID列表 | | originListeningActionGroupIds | array | yes | 源作品bot要拷贝的监听ID列表 | #### 请求示例 ```js curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/bot/data/copy/cross/bot' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Accept-Language: zh-CN,zh;q=0.9' \ -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURJMU16a3lORFlzSW1WNGNDSTZNVGN3TWpVME5qUTBOaXdpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLmpsLWliT3VxWDc4WVpIY2MwTllIaVhmWWdFajdhOFlHR2dyZ0Y2UG0wSEE6czAwcGVyczNjcmV0' \ -H 'Connection: keep-alive' \ -H 'Content-Type: application/json;charset=UTF-8' \ -H 'Cookie: username=%E5%8B%BF%E5%BF%98%E7%81%AC%E6%97%A0%E6%9C%9F; nickname=%E5%8B%BF%E5%BF%98%E7%81%AC%E6%97%A0%E6%9C%9F; authority=1; icon=#; platform_token=eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDI1MzkyNDYsImV4cCI6MTcwMjU0NjQ0NiwiYXV0aG9yaXR5IjoxLCJpZCI6MjI0fQ.jl-ibOuqX78YZHcc0NYHiXfYgEj7a8YGGgrgF6Pm0HA' \ -H 'Origin: http://tx-gz14.heyqiwu.cn' \ -H 'Referer: http://tx-gz14.heyqiwu.cn/Editor/' \ -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36' \ -H 'botAccount: txgz14botwww853177949' \ -H 'groupId: 713' \ -H 'mul: true' \ -H 'projectId: 6381' \ --data-raw '{"originBotAccount":"txgz14botwww853177949","targetBotAccount":"txgz14botxudongceshi179361154","originPlotCategoryIds":[73800],"originListeningActionGroupIds":[]}' \ --compressed \ --insecure ``` #### 响应实例 ```json { "code": 1, "msg": "成功", "data": null } ``` ### 作品内复制 **METHOD**: POST **path**: api/platform/design/bot/data/copy/cur/bot **RequestHeaders:** 同创作平台请求header #### 请求param字段说明 | key | type | required | description | | ---- | ---- | -------- | ----------- | | 无 | | | | #### 请求body字段说明 | key | type | required | description | | ----------------------------- | ------ | -------- | -------------------- | | originBotAccount | string | yes | 源作品bot帐号 | | originPlotIds | array | yes | 要拷贝的剧情点ID列表 | | originListeningActionGroupIds | array | yes | 需要拷贝的监听ID列表 | | targetPlotCategoryId | number | yes | 目标剧情分类ID | #### 请求示例 ```js curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/bot/data/copy/cur/bot' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Accept-Language: zh-CN,zh;q=0.9' \ -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURJMU16a3lORFlzSW1WNGNDSTZNVGN3TWpVME5qUTBOaXdpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLmpsLWliT3VxWDc4WVpIY2MwTllIaVhmWWdFajdhOFlHR2dyZ0Y2UG0wSEE6czAwcGVyczNjcmV0' \ -H 'Connection: keep-alive' \ -H 'Content-Type: application/json;charset=UTF-8' \ -H 'Cookie: username=%E5%8B%BF%E5%BF%98%E7%81%AC%E6%97%A0%E6%9C%9F; nickname=%E5%8B%BF%E5%BF%98%E7%81%AC%E6%97%A0%E6%9C%9F; authority=1; icon=#; platform_token=eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDI1MzkyNDYsImV4cCI6MTcwMjU0NjQ0NiwiYXV0aG9yaXR5IjoxLCJpZCI6MjI0fQ.jl-ibOuqX78YZHcc0NYHiXfYgEj7a8YGGgrgF6Pm0HA' \ -H 'Origin: http://tx-gz14.heyqiwu.cn' \ -H 'Referer: http://tx-gz14.heyqiwu.cn/Editor/' \ -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36' \ -H 'botAccount: txgz14botwww853177949' \ -H 'groupId: 713' \ -H 'mul: true' \ -H 'projectId: 6381' \ --data-raw '{"originBotAccount":"txgz14botwww853177949","originPlotIds":[2175258],"originListeningActionGroupIds":[],"targetPlotCategoryId":73801}' \ --compressed \ --insecure ``` #### 响应实例 ```json { "code": 1, "msg": "成功", "data": null } ``` ### 获取复制进度 **METHOD**: GET **path**: api/platform/design/bot/data/copy/percent **RequestHeaders:** 同创作平台请求header #### 请求param字段说明 | key | type | required | description | | ---------- | ------ | -------- | -------------- | | botAccount | string | yes | 在引擎中的帐号 | #### 请求body字段说明 | key | type | required | description | | ---- | ---- | -------- | ----------- | | 无 | | | | #### 请求示例 ```js curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/bot/data/copy/percent?botAccount=txgz14botwww853177949' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Accept-Language: zh-CN,zh;q=0.9' \ -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURJeU5UZzBNVGtzSW1WNGNDSTZNVGN3TWpJMk5UWXhPU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLkJTYXpJNzV0RHJLQU94WGdVYXRPNUdTcWYyLTcySmZ2RHJoM3MybjRFQ0E6czAwcGVyczNjcmV0' \ -H 'Connection: keep-alive' \ -H 'Origin: http://localhost:8080' \ -H 'Referer: http://localhost:8080/' \ -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36' \ -H 'botAccount: txgz14botwww853177949' \ -H 'groupId: 713' \ -H 'mul: true' \ -H 'projectId: 6381' \ --compressed \ --insecure ``` #### 响应实例 ```json SUCCESS: { "code": 1, "msg": "成功", "data": { "status": 1, // 拷贝状态  0:表示正在拷贝中, 1:表示拷贝完成, -1 表示拷贝失败 "msg": "拷贝完成!", // 提示信息 "percent": 0, // 拷贝进度 "data": null } } FAILTURE: { "code": 1, "msg": "成功", "data": { "status": -1, "msg": "数据有误", "percent": 0, "data": { "targetBotAccount": null, "varNames": ["体力值"], // 提示目标bot没有的变量 "phraseNames": ["水果"], // 提示目标bot没有词组 "placeNames": ["武夷山"], // 提示目标bot没有地点 "npcName2AttrNames": {"沙和尚":{"体力值":123123}}, // 提示目标BOT的NPC或者NPC属性不存在 "goodsName2AttrNames": {"金箍棒":{"杀伤力":123123}}, // 提示目标BOT的物品或者物品的属性不存在 "npcClassName2AttrNames": {"主要人物":{"体力值":123123}}, // 提示目标BOT的NPC类或者NPC类的属性不存在 "goodsClassName2AttrNames": {"棒类":{"杀伤力":123123}}, // 提示目标BOT的物品类或者物品类的属性不存在 "plotNums": [], // 提示与目标BOT的剧情点冲突 "plotCategoryNums": [ // 提示与目标BOT的剧情分类冲突 "1", "2" ] } } } ```