一键成片优化

This commit is contained in:
Azmat@qq.com
2026-09-04 18:16:43 +08:00
parent ee3ddb49b4
commit 0d042edc73
6 changed files with 130 additions and 7 deletions
+16
View File
@@ -589,6 +589,22 @@ class ProjectViewSet(TeamScopedViewSetMixin, ModelViewSet):
)
team = self.get_team()
# 开工前门禁:可用积分必须盖住「脚本+出图粗估+视频」挂牌合计(与按钮预估同口径)。
# 不在这里预留整笔,后续各阶段各自 reserve;这里只避免积不够半路挂掉。
from .services.quick_create import assert_quick_create_balance
try:
assert_quick_create_balance(
team=team,
text_model=text_model,
image_model=image_model,
video_model=video_model,
aspect_ratio=aspect_ratio,
resolution=resolution,
total_duration=total_duration,
)
except ValueError as exc:
return Response({"detail": str(exc)}, status=status.HTTP_400_BAD_REQUEST)
reused_assets = []
if source_product_id:
try: