feat(platform): 多模态创作 - 新增统一创作页、历史会话与视频参数控制

This commit is contained in:
ddCat committed 2026-08-02 14:52:49 +08:00
1 parent 0317ac5bc7
commit 64f32d3607
10 files changed
+3348 -48

No files matched your search

+3 -2
View File
@@ -78,13 +78,14 @@ export function isArkPlanBaseUrl(baseUrl: string) {
export function normalizeSeedanceResolution(value: string, model = "") {
const normalized = normalizeResolutionToken(value);
if (isSeedanceFastModel(model) && normalized === "1080p") return "720p";
return seedanceResolutionOptions.some((item) => item.value === normalized) ? normalized : "720p";
if (isSeedanceFastModel(model) && (normalized === "1080p" || normalized === "2160p")) return "720p";
return normalized === "2160p" || seedanceResolutionOptions.some((item) => item.value === normalized) ? normalized : "720p";
}
export function normalizeResolutionToken(value: string) {
if (value === "low") return "480p";
if (value === "auto" || value === "high" || value === "medium") return "720p";
if (value.toLowerCase() === "4k") return "2160p";
const resolution = String(value || "").replace(/p$/i, "") || "720";
return `${resolution}p`;
}