fix(billing): enforce one effective subscription per user

This commit is contained in:
237899745
2026-07-26 10:54:01 +08:00
parent e90f6ec604
commit f2d490edce
5 changed files with 349 additions and 39 deletions

View File

@@ -212,7 +212,7 @@ onMounted(async () => {
>
{{ subBusy ? '提交中…' : '立即开通' }}
</button>
<span class="text-xs text-slate-500">取消该用户当前有效订阅并按月数顺延</span>
<span class="text-xs text-slate-500">替换当前本地套餐存在未取消 Stripe 订阅时将拒绝操作</span>
</div>
<div v-if="subMessage" class="mt-3 rounded-lg border border-emerald-200 bg-emerald-50 p-3 text-sm text-emerald-900">