feat(short-drama-agent-front): 接入图片持续授权与视频费用审计
This commit is contained in:
1 parent
3915566994
commit
1e9ef33d1d
39 files changed
+3442
-51
No files matched your search
@@ -203,6 +203,14 @@ describe('镜头生产数据契约', () => {
|
||||
const fetcher = vi.fn<typeof fetch>().mockImplementation(async url => {
|
||||
const path = String(url)
|
||||
if (path === '/api/generation-models') return new Response(JSON.stringify({ data: imageCatalog }))
|
||||
if (path.endsWith('/generation-config/image/resolve'))
|
||||
return Response.json({
|
||||
data: {
|
||||
provider: 'qwen-image',
|
||||
model: 'qwen-image-3.0-pro',
|
||||
options: generationProfile('project-1').imageOptions
|
||||
}
|
||||
})
|
||||
if (path === '/api/projects/project-1/creative-profile')
|
||||
return new Response(JSON.stringify({ data: generationProfile('project-1') }))
|
||||
const shotId = path.match(/storyboard-shots\/([^/]+)/)?.[1]
|
||||
@@ -285,6 +293,8 @@ describe('镜头生产数据契约', () => {
|
||||
}
|
||||
})
|
||||
)
|
||||
if (path.endsWith('/generation-config/image/resolve'))
|
||||
return Response.json({ data: { provider: 'seedream', model: 'image-model', options: {} } })
|
||||
if (path.includes('/creative-profile')) return new Response(JSON.stringify({ data: null }))
|
||||
return new Response(
|
||||
JSON.stringify({
|
||||
|
||||
Reference in new issue
Block a user