一件成片积分计算补上

This commit is contained in:
Azmat@qq.com
2026-09-04 18:30:43 +08:00
parent 0d042edc73
commit 75b1665f76
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -597,7 +597,7 @@ export function QuickCreatePage({
{ ratio: aspectRatio, resolution, duration: totalDuration, refs: [] },
billingRates,
);
// 与实扣对齐:脚本(Seed 2.1 Pro 挂牌) + 默认出图挂牌×场次粗估 + 视频挂牌秒价×时长
// 与实扣对齐:脚本挂牌 + 出图粗估(1商品+每场1角色+1场景) + 视频挂牌秒价×时长
const applyTeam = (raw: number) => {
const multiplier = billingRates.multiplier || 1;
if (!(raw > 0)) return 0;
@@ -619,8 +619,10 @@ export function QuickCreatePage({
const listed = pointsPerImageFromCatalog(img);
return listed != null && listed > 0 ? listed : QUICK_IMAGE_POINTS_FALLBACK;
})();
// 脚本未出前粗估:1 张商品图 + 每场至少 1 角色图 + 1 场景图(与 _ensure_fallback_entities 兜底一致)
const estimatedAssetCount = 1 + sceneCount * 2;
const estimatedPoints = videoEstimate.listed
? videoEstimate.points + applyTeam(scriptUnit) + applyTeam(sceneCount * imageUnit)
? videoEstimate.points + applyTeam(scriptUnit) + applyTeam(estimatedAssetCount * imageUnit)
: 0;
const shellClass = [
"quick-create-shell",