BaseURL: https://hw-gz26.heyqiwu.cn ##### 生成剧本 URL: {BaseURL}/api/juben/generate?secret=f1fvo0Yhw199PIHWTmCbbQ METHOD: POST RequestHeaders: | key | value | | :----------- | :------------ | | Content-Type | application/json;charset=utf-8 | RequestBody: ``` 剧本导出ai未加密json放这,有注释地方是新加字段 { "pointBOList": [], "work": { "count": 1490, "gmtCreate": 1627279090000, "gmtModified": 1627279090000, "id": 51, "name": "血族女王", "ownerId": 8, "serviceCode":"juben1", // 服务器标识 "startPlotNum":"1-1", // 让用户输入开始剧情点生成 "username":"jinfengli" // 用户名 } } ``` ResponseBody: ``` SUCCESS: { "code": 1, "msg": "成功", "data": null } FAILTURE: { "code": 60003, "msg": "该接口禁止访问", "data": null } { "code": 50002, "msg": "作品数据缺失!", "data": null } ``` Example: ``` curl --location --request POST 'https://hw-gz26.heyqiwu.cn/api/juben/generate?secret=f1fvo0Yhw199PIHWTmCbbQ' \ --header 'Content-Type: application/json' \ --data-raw '{ "pointBOList": [ ], "work": { "count": 1490, "gmtCreate": 1627279090000, "gmtModified": 1627279090000, "id": 51, "name": "血族女王", "ownerId": 8, "serviceCode":"juben1", "startPlotNum":"1-1", "username":"jinfengli" } }' ``` ##### 获取生成进度 URL: {BaseURL}/api/juben/generate/percent?jubenId={剧本ID}&serviceCode={服务标识,例如:juben1}&secret=f1fvo0Yhw199PIHWTmCbbQ METHOD: POST RequestHeaders: | key | value | | :----------- | :------------ | | Content-Type | application/json;charset=utf-8 | ResponseBody: ``` SUCCESS: { "code": 1, "msg": "成功", "data": { "status": 1, // 生成完成状态-> 1: 成功, 0: 生成中 "progress": 100 // 进度,100表示完成 } } { "code": 1, "msg": "成功", "data": { "status": 0, // 生成完成状态-> 1: 成功, 0: 生成中 "progress": 90 // 进度,100表示完成 } } FAILTURE: { "code": 50002, "msg": "不存在脚本,请先生成!", "data": null } ``` Example: ``` curl --location --request GET 'https://hw-gz26.heyqiwu.cn/api/juben/generate/percent?jubenId=51&serviceCode=juben1&secret=f1fvo0Yhw199PIHWTmCbbQ' ```