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
李进峰
jiaoyou_doc
Commits
dd996ae8
Commit
dd996ae8
authored
Nov 23, 2023
by
jixudong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace 项目列表-剧情.md
parent
46962477
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
246 additions
and
1 deletion
+246
-1
项目列表-剧情.md
gameditor/前端接口/项目列表-剧情.md
+246
-1
No files found.
gameditor/前端接口/项目列表-剧情.md
View file @
dd996ae8
**测试环
境URL**
:http://tx-gz14.heyqiwu.cn
**测试环
境URL**
:http://tx-gz14.heyqiwu.cn
...
...
@@ -66,3 +66,247 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/category/?projectId=983
}
```
### 获取可以拷贝的数据
**METHOD**
: GET
**path**
: api/platform/design/package/plot/move
**RequestHeaders:**
同创作平台请求header
#### 请求param字段说明
| key | type | required | description |
| --------- | ---- | -------- | ----------- |
| projectId | | 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
}
]
}
}
```
### 跨BOT拷贝
URL: api/platform/design/bot/data/copy/cross/bot
METHOD: POST
RequestHeaders:
| key | value |
| :------------ | :----------------------------- |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
| botAccount | bot帐号 |
| groupId | 组ID |
| mul | true |
| projectId | 作品ID |
RequestBody:
```
json
{
"originBotAccount"
:
"6080626246"
,
//
源作品bot帐号
"targetBotAccount"
:
"gz25botceshixinjianzuopin2406461887"
,
//
目标作品帐号
"originPlotCategoryIds"
:[
12903
,
12904
],
//
源作品bot要拷贝的剧情分类ID列表
"originListeningActionGroupIds"
:[
45503
,
45519
]
//
源作品bot要拷贝的监听ID列表
}
```
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": null
}
```
### **作品内拷贝**
URL: api/platform/design/bot/data/copy/cur/bot
METHOD: POST
RequestHeaders:
| key | value |
| :------------ | :----------------------------- |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
| botAccount | bot帐号 |
| groupId | 组ID |
| mul | true |
| projectId | 作品ID |
RequestBody:
```
json
{
"originBotAccount"
:
"6080626246"
,
//
当前bot帐号
"originPlotIds"
:[
412440
,
412441
],
//
要拷贝的剧情点ID列表
"originListeningActionGroupIds"
:[
45503
,
45519
],
//
需要拷贝的监听ID列表
"targetPlotCategoryId"
:
13230
//
目标剧情分类ID
}
```
ResponseBody:
```
json
SUCCESS
:
{
"code"
:
1
,
"msg"
:
"成功"
,
"data"
:
null
}
```
### 获取拷贝进度
URL: api/platform/design/bot/data/copy/percent?botAccount={BOT帐号例如:6080626246}
METHOD: GET
RequestHeaders:
| key | value |
| :------------ | :----------------------------- |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
| botAccount | bot帐号 |
| groupId | 组ID |
| mul | true |
| projectId | 作品ID |
ResponseBody:
```
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"
]
}
}
}
```
####
\ 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