feat: 平台图标与计费修复
- fix(billing): 修复 OpenAI 兼容 API 缓存 token 重复计费问题 - fix(auth): 隐藏数据库错误详情,返回通用服务不可用错误 - feat(ui): 新增 PlatformIcon 组件,GroupBadge 支持平台颜色区分 - feat(ui): 账号管理新增重置状态按钮,重授权后自动清除错误 - feat(ui): 分组管理新增计费类型列,显示订阅限额信息 - ui: 首页 GPT 状态改为已支持
This commit is contained in:
@@ -182,6 +182,11 @@ export default {
|
||||
addBalanceWithCode: 'Add balance with a code',
|
||||
},
|
||||
|
||||
// Groups (shared)
|
||||
groups: {
|
||||
subscription: 'Sub',
|
||||
},
|
||||
|
||||
// API Keys
|
||||
keys: {
|
||||
title: 'API Keys',
|
||||
@@ -515,6 +520,7 @@ export default {
|
||||
accounts: 'Accounts',
|
||||
status: 'Status',
|
||||
actions: 'Actions',
|
||||
billingType: 'Billing Type',
|
||||
},
|
||||
accountsCount: '{count} accounts',
|
||||
form: {
|
||||
@@ -527,12 +533,16 @@ export default {
|
||||
enterGroupName: 'Enter group name',
|
||||
optionalDescription: 'Optional description',
|
||||
platformHint: 'Select the platform this group is associated with',
|
||||
platformNotEditable: 'Platform cannot be changed after creation',
|
||||
rateMultiplierHint: 'Cost multiplier for this group (e.g., 1.5 = 150% of base cost)',
|
||||
exclusiveHint: 'Exclusive (requires explicit user access)',
|
||||
noGroupsYet: 'No groups yet',
|
||||
createFirstGroup: 'Create your first group to organize API keys.',
|
||||
creating: 'Creating...',
|
||||
updating: 'Updating...',
|
||||
limitDay: 'd',
|
||||
limitWeek: 'w',
|
||||
limitMonth: 'mo',
|
||||
groupCreated: 'Group created successfully',
|
||||
groupUpdated: 'Group updated successfully',
|
||||
groupDeleted: 'Group deleted successfully',
|
||||
@@ -661,6 +671,9 @@ export default {
|
||||
tokenRefreshed: 'Token refreshed successfully',
|
||||
accountDeleted: 'Account deleted successfully',
|
||||
rateLimitCleared: 'Rate limit cleared successfully',
|
||||
resetStatus: 'Reset Status',
|
||||
statusReset: 'Account status reset successfully',
|
||||
failedToResetStatus: 'Failed to reset account status',
|
||||
failedToLoad: 'Failed to load accounts',
|
||||
failedToRefresh: 'Failed to refresh token',
|
||||
failedToDelete: 'Failed to delete account',
|
||||
|
||||
@@ -182,6 +182,11 @@ export default {
|
||||
addBalanceWithCode: '使用兑换码充值',
|
||||
},
|
||||
|
||||
// Groups (shared)
|
||||
groups: {
|
||||
subscription: '订阅',
|
||||
},
|
||||
|
||||
// API Keys
|
||||
keys: {
|
||||
title: 'API 密钥',
|
||||
@@ -530,13 +535,16 @@ export default {
|
||||
deleteConfirmSubscription: "确定要删除订阅分组 '{name}' 吗?此操作会让所有绑定此订阅的用户的 API Key 失效,并删除所有相关的订阅记录。此操作无法撤销。",
|
||||
columns: {
|
||||
name: '名称',
|
||||
platform: '平台',
|
||||
rateMultiplier: '费率倍数',
|
||||
exclusive: '独占',
|
||||
platforms: '平台',
|
||||
type: '类型',
|
||||
priority: '优先级',
|
||||
apiKeys: 'API 密钥数',
|
||||
accounts: '账号数',
|
||||
status: '状态',
|
||||
actions: '操作',
|
||||
billingType: '计费类型',
|
||||
},
|
||||
form: {
|
||||
name: '名称',
|
||||
@@ -588,10 +596,14 @@ export default {
|
||||
enterGroupName: '请输入分组名称',
|
||||
optionalDescription: '可选描述',
|
||||
platformHint: '选择此分组关联的平台',
|
||||
platformNotEditable: '创建后不可更改平台',
|
||||
noGroupsYet: '暂无分组',
|
||||
createFirstGroup: '创建您的第一个分组来组织 API 密钥。',
|
||||
creating: '创建中...',
|
||||
updating: '更新中...',
|
||||
limitDay: '日',
|
||||
limitWeek: '周',
|
||||
limitMonth: '月',
|
||||
groupCreated: '分组创建成功',
|
||||
groupUpdated: '分组更新成功',
|
||||
groupDeleted: '分组删除成功',
|
||||
@@ -749,6 +761,9 @@ export default {
|
||||
accountCreatedSuccess: '账号添加成功',
|
||||
accountUpdatedSuccess: '账号更新成功',
|
||||
accountDeletedSuccess: '账号删除成功',
|
||||
resetStatus: '重置状态',
|
||||
statusReset: '账号状态已重置',
|
||||
failedToResetStatus: '重置账号状态失败',
|
||||
cookieRefreshedSuccess: 'Cookie 刷新成功',
|
||||
testSuccess: '账号测试通过',
|
||||
testFailed: '账号测试失败',
|
||||
|
||||
Reference in New Issue
Block a user