From 455786103a95c759f367673e22fda8a59be1e914 Mon Sep 17 00:00:00 2001 From: TIANHE Date: Wed, 14 Jan 2026 23:58:21 +0800 Subject: [PATCH] new Signed-off-by: TIANHE --- backend_api_python/app/services/billing_service.py | 2 ++ quantdinger_vue/src/views/profile/index.vue | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/backend_api_python/app/services/billing_service.py b/backend_api_python/app/services/billing_service.py index 8107d77..d90f124 100644 --- a/backend_api_python/app/services/billing_service.py +++ b/backend_api_python/app/services/billing_service.py @@ -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), diff --git a/quantdinger_vue/src/views/profile/index.vue b/quantdinger_vue/src/views/profile/index.vue index 34582d2..d9c7729 100644 --- a/quantdinger_vue/src/views/profile/index.vue +++ b/quantdinger_vue/src/views/profile/index.vue @@ -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({