一键成片优化
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user