update pay function

This commit is contained in:
2025-11-20 08:02:34 +08:00
parent 27cdf0aecd
commit d5a55c4e02
2 changed files with 10 additions and 7 deletions

4
app.py
View File

@@ -579,7 +579,7 @@ class User(UserMixin, db.Model):
'billing_cycle': subscription.billing_cycle,
'start_date': subscription.start_date.isoformat() if subscription.start_date else None,
'end_date': subscription.end_date.isoformat() if subscription.end_date else None,
'auto_renew': subscription.auto_renew
'auto_renewal': subscription.auto_renewal
})
else:
# 无订阅时使用默认值
@@ -589,7 +589,7 @@ class User(UserMixin, db.Model):
'billing_cycle': None,
'start_date': None,
'end_date': None,
'auto_renew': False
'auto_renewal': False
})
# 敏感信息只在需要时包含