积分消耗明细改版V1

This commit is contained in:
2026-08-12 11:49:53 +08:00
parent e3719eae09
commit eb7c60684e
39 changed files with 648 additions and 975 deletions
+1 -1
View File
@@ -207,7 +207,7 @@ export async function mockOptimizePrompt(
await delay(1500);
const project = MOCK_PROJECTS.find((p) => p.id === projectId);
// Mock 与正式接口保持一致:提示词优化按场景固定预扣,积分不足直接拦截。
// Mock 与正式接口保持一致:提示词优化按后台场景配置直接消费积分,积分不足同步拦截。
const cost = 5;
if (currentUser) {
+1 -1
View File
@@ -3200,7 +3200,7 @@ const GeneratePage: React.FC = () => {
</span>
)}
<Tooltip
title="固定预扣积分由服务端按当前功能场景校验"
title="LLM积分由服务端按当前功能场景直接消费"
placement="top"
>
<Button
+1 -1
View File
@@ -1667,7 +1667,7 @@ function InitialInfo() {
</Button>
{isV2 && (
<Tooltip
title="固定预扣积分由服务端按当前功能场景校验"
title="LLM积分由服务端按当前功能场景直接消费"
placement="top"
>
<Button
@@ -1639,7 +1639,7 @@ const GenerateConver: React.FC = () => {
{/* 立即生成按钮 */}
<Tooltip
title={((user?.credits || 0) < estimatedCredits) ? '媒体生成积分不足,请更换参数/充值积分' : 'LLM固定预扣由服务端按场景校验'}
title={((user?.credits || 0) < estimatedCredits) ? '媒体生成积分不足,请更换参数/充值积分' : 'LLM积分由服务端按场景配置直接消费'}
placement="top"
>
<Button
+1 -1
View File
@@ -1683,7 +1683,7 @@ function RemoveInfo() {
<div style={{ display: 'flex', gap: 12, marginTop: 8 }}>
<Tooltip
title={((user?.credits || 0) < estimatedCredits) ? '媒体生成积分不足,请更换参数/充值积分' : 'LLM固定预扣由服务端按场景校验'}
title={((user?.credits || 0) < estimatedCredits) ? '媒体生成积分不足,请更换参数/充值积分' : 'LLM积分由服务端按场景配置直接消费'}
placement="top"
>
<Button
+2 -2
View File
@@ -1011,7 +1011,7 @@ function InitialInfo() {
{!isV2 && (
<Tooltip
title="固定预扣积分由服务端按当前功能场景校验"
title="LLM积分由服务端按当前功能场景直接消费"
placement="top"
>
<Button
@@ -1570,7 +1570,7 @@ function InitialInfo() {
</Button>
{isV2 && (
<Tooltip
title="固定预扣积分由服务端按当前功能场景校验"
title="LLM积分由服务端按当前功能场景直接消费"
placement="top"
>
<Button