From 32f398df7a74439050535ea93ece5074029e7213 Mon Sep 17 00:00:00 2001 From: zzlgreat Date: Fri, 12 Dec 2025 17:55:00 +0800 Subject: [PATCH] update pay ui --- app_vx.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app_vx.py b/app_vx.py index ae052948..598f4626 100644 --- a/app_vx.py +++ b/app_vx.py @@ -6565,6 +6565,11 @@ def api_membership_status(): # 手机绑定状态 phone_bindcd = bool(user.phone and user.phone_confirmed) + # 格式化到期日期,供前端直接显示 + member_expire_date = None + if subscription.end_date: + member_expire_date = subscription.end_date.strftime('%Y-%m-%d') + return jsonify({ 'code': 200, 'message': 'success', @@ -6577,6 +6582,7 @@ def api_membership_status(): 'is_active': is_active, 'start_date': subscription.start_date.isoformat() if subscription.start_date else None, 'end_date': subscription.end_date.isoformat() if subscription.end_date else None, + 'member_expire_date': member_expire_date, # 兼容前端显示格式 YYYY-MM-DD 'days_left': subscription.days_left(), 'auto_renewal': subscription.auto_renewal, # 手机绑定状态