feat: 从 OpenAI JWT 提取 chatgpt_plan_type 并在前端展示

OAuth 授权和 token 刷新时从 id_token 的 OpenAI auth claim 中
提取 chatgpt_plan_type(plus/team/pro/free),存入 credentials,
账号管理页面 PlatformTypeBadge 显示订阅类型。
This commit is contained in:
QTom
2026-03-09 16:57:06 +08:00
parent c8eff34388
commit a582aa89a9
4 changed files with 33 additions and 1 deletions

View File

@@ -171,7 +171,7 @@
<span v-else class="text-sm text-gray-400 dark:text-dark-500">-</span>
</template>
<template #cell-platform_type="{ row }">
<PlatformTypeBadge :platform="row.platform" :type="row.type" />
<PlatformTypeBadge :platform="row.platform" :type="row.type" :plan-type="row.credentials?.plan_type" />
</template>
<template #cell-capacity="{ row }">
<AccountCapacityCell :account="row" />