This commit is contained in:
2026-07-09 11:57:48 +08:00
parent 796b533add
commit 23ab0a2027
3 changed files with 16 additions and 14 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -28,7 +28,7 @@
} }
})(); })();
</script> </script>
<script type="module" crossorigin src="/assets/index-CT6M5c-S.js"></script> <script type="module" crossorigin src="/assets/index-DGh1eEOO.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-JhRVnnL-.css"> <link rel="stylesheet" crossorigin href="/assets/index-JhRVnnL-.css">
</head> </head>
<body> <body>
+14 -12
View File
@@ -382,36 +382,38 @@ const AIChatPage: React.FC = () => {
config = { config = {
perSecondCredits: 2, perSecondCredits: 2,
baseCredits: 60, baseCredits: 60,
ratio: 1, ratio: 1.3,
inputVideoRatio: 1, inputVideoRatio: 1.3,
inputVideoBaseCredits: 0, inputVideoBaseCredits: 0,
inputVideoPerSecondCredits: 0.5, inputVideoPerSecondCredits: 15,
inputImageRatio: 1, inputImageRatio: 1,
inputImageBaseCredits: 0, inputImageBaseCredits: 0,
inputImagePerImageCredits: 0.5, inputImagePerImageCredits: 0.0,
}; };
if (videoResolution === '1080p') { if (videoResolution === '1080p') {
config.ratio = 2; config.ratio = 1.3;
} else if (videoResolution === '720p') { } else if (videoResolution === '720p') {
config.ratio = 1.5; config.ratio = 1.3;
} else if (videoResolution === '480p') { } else if (videoResolution === '480p') {
config.ratio = 1; config.ratio = 1.3;
} }
} }
else { else {
// 如果没有找到对应的配置,则使用默认配置 // 如果没有找到对应的配置,则使用默认配置
config = { config = {
perSecondCredits: 0.1, perSecondCredits: 0.1,
baseCredits: 4, baseCredits: 2,
ratio: 1, ratio: 3,
inputImageRatio: 1, inputImageRatio: 1,
inputImageBaseCredits: 0, inputImageBaseCredits: 0,
inputImagePerImageCredits: 0.5, inputImagePerImageCredits: 0.0,
}; };
if (selectedResolution === '2K') { if (selectedResolution === '2K') {
config.ratio = 1; config.ratio = 3;
} else if (selectedResolution === '4K') { } else if (selectedResolution === '4K') {
config.ratio = 2; config.ratio = 3;
} else if (selectedResolution === '1K') {
config.ratio = 3;
} }
} }
} }