现在接口返回的数据结构是:
{
"created": 1773625689,
"data": [
{
"url": "https://***ormat=.jpeg"
},
{
"url": "https://***ormat=.jpeg"
},
{
"url": "https://***ormat=.jpeg"
},
{
"url": "https://***ormat=.jpeg"
}
]
}
能不能把history_ids也返回出来,在控制台日志中:
[2026-03-16 09:47:36.265][info][core.ts<318,10>] 发送请求: POST https://mweb-api-sg.capcut.com/mweb/v1/get_history_by_ids
[2026-03-16 09:47:36.267][info][core.ts<323,10>] 请求参数: {"aid":513641,"device_platform":"web","region":"SG","da_version":"3.3.9","os":"windows","web_component_open_flag":1,"web_version":"7.5.0","aigc_features":"app_lip_sync"}
[2026-03-16 09:47:36.267][info][core.ts<324,10>] 请求数据: {"history_ids":["20627921127684"],"image_info":{"width":2048,"height":2048,"format":"webp","image_scene_list":[{"scene":"smart_crop","width":360,"height":360,"uniq_key":
"smart_crop-w:360-h:360","format":"webp"},{"scene":"smart_crop","width":480,"height":480,"uniq_key":"smart_crop-w:480-h:480","format":"webp"},{"scene":"smart_crop","width":720,"height":720,"uniq_key":"smart_crop-w:720-h:720","fo
rmat":"webp"},{"scene":"smart_crop","width":720,"height":480,"uniq_key":"smart_crop-w:720-h:480","format":"webp"},{"scene":"smart_crop","width":360,"height":240,"uniq_key":"smart_crop-w:360-h:240","format":"webp"},{"scene":"smar
t_crop","width":240,"height":320,"uniq_key":"smart_crop-w:240-h:320","format":"webp"},{"scene":"smart_crop","width":480,"height":640,"uniq_key":"smart_crop-w:480-h:640","format":"webp"},{"scene":"normal","width":2400,"height":24
00,"uniq_key":"2400","format":"webp"},{"scene":"normal","width":1080,"height":1080,"uniq_key":"1080","format":"webp"},{"scene":"normal","width":720,"height":720,"uniq_key":"720","format":"webp"},{"scene":"normal","width":480,"height":480,"uniq_key":"480","format":"webp"},{"scene":"normal","width":360,"height":360,"uniq_key":"360","format":"webp"}]}}
下面这个history_ids,由于保存的图片或者视频链接有实效性。这个id可以在后期可用于更新图片或者视频链接
"history_ids":["20627921127684"]
希望接口返回:
{
"created": 1773625689,
"history_ids":["20627921127684"],
"data": [
{
"url": "https://***ormat=.jpeg"
},
{
"url": "https://***ormat=.jpeg"
},
{
"url": "https://***ormat=.jpeg"
},
{
"url": "https://***ormat=.jpeg"
}
]
}
现在接口返回的数据结构是:
{
"created": 1773625689,
"data": [
{
"url": "https://***ormat=.jpeg"
},
{
"url": "https://***ormat=.jpeg"
},
{
"url": "https://***ormat=.jpeg"
},
{
"url": "https://***ormat=.jpeg"
}
]
}
能不能把history_ids也返回出来,在控制台日志中:
[2026-03-16 09:47:36.265][info][core.ts<318,10>] 发送请求: POST https://mweb-api-sg.capcut.com/mweb/v1/get_history_by_ids
[2026-03-16 09:47:36.267][info][core.ts<323,10>] 请求参数: {"aid":513641,"device_platform":"web","region":"SG","da_version":"3.3.9","os":"windows","web_component_open_flag":1,"web_version":"7.5.0","aigc_features":"app_lip_sync"}
[2026-03-16 09:47:36.267][info][core.ts<324,10>] 请求数据: {"history_ids":["20627921127684"],"image_info":{"width":2048,"height":2048,"format":"webp","image_scene_list":[{"scene":"smart_crop","width":360,"height":360,"uniq_key":
"smart_crop-w:360-h:360","format":"webp"},{"scene":"smart_crop","width":480,"height":480,"uniq_key":"smart_crop-w:480-h:480","format":"webp"},{"scene":"smart_crop","width":720,"height":720,"uniq_key":"smart_crop-w:720-h:720","fo
rmat":"webp"},{"scene":"smart_crop","width":720,"height":480,"uniq_key":"smart_crop-w:720-h:480","format":"webp"},{"scene":"smart_crop","width":360,"height":240,"uniq_key":"smart_crop-w:360-h:240","format":"webp"},{"scene":"smar
t_crop","width":240,"height":320,"uniq_key":"smart_crop-w:240-h:320","format":"webp"},{"scene":"smart_crop","width":480,"height":640,"uniq_key":"smart_crop-w:480-h:640","format":"webp"},{"scene":"normal","width":2400,"height":24
00,"uniq_key":"2400","format":"webp"},{"scene":"normal","width":1080,"height":1080,"uniq_key":"1080","format":"webp"},{"scene":"normal","width":720,"height":720,"uniq_key":"720","format":"webp"},{"scene":"normal","width":480,"height":480,"uniq_key":"480","format":"webp"},{"scene":"normal","width":360,"height":360,"uniq_key":"360","format":"webp"}]}}
下面这个history_ids,由于保存的图片或者视频链接有实效性。这个id可以在后期可用于更新图片或者视频链接
"history_ids":["20627921127684"]
希望接口返回:
{
"created": 1773625689,
"history_ids":["20627921127684"],
"data": [
{
"url": "https://***ormat=.jpeg"
},
{
"url": "https://***ormat=.jpeg"
},
{
"url": "https://***ormat=.jpeg"
},
{
"url": "https://***ormat=.jpeg"
}
]
}