Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
This commit is contained in:
TIANHE
2026-01-14 23:58:21 +08:00
parent 6011ba4ce3
commit 455786103a
2 changed files with 8 additions and 2 deletions
@@ -421,6 +421,8 @@ class BillingService:
'vip_expires_at': vip_expires_at.isoformat() if vip_expires_at else None,
'billing_enabled': config.get('enabled', False),
'vip_bypass': config.get('vip_bypass', True),
# Public support link for credits recharge / VIP purchase
'recharge_telegram_url': os.getenv('RECHARGE_TELEGRAM_URL', '').strip() or 'https://t.me/your_support_bot',
# 功能费用(供前端显示)
'feature_costs': {
'ai_analysis': config.get('cost_ai_analysis', 0),
+6 -2
View File
@@ -380,7 +380,8 @@ export default {
vip_expires_at: null,
billing_enabled: false,
vip_bypass: true,
feature_costs: {}
feature_costs: {},
recharge_telegram_url: ''
},
rechargeTelegramUrl: 'https://t.me/your_support_bot'
}
@@ -463,7 +464,6 @@ export default {
},
mounted () {
this.loadProfile()
this.loadRechargeUrl()
this.loadReferrals()
},
beforeDestroy () {
@@ -481,6 +481,10 @@ export default {
// 提取计费信息
if (res.data.billing) {
this.billing = res.data.billing
// Prefer server-provided public recharge link
if (this.billing.recharge_telegram_url) {
this.rechargeTelegramUrl = this.billing.recharge_telegram_url
}
}
this.$nextTick(() => {
this.profileForm.setFieldsValue({