update pay function
This commit is contained in:
4
app.py
4
app.py
@@ -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
|
||||
})
|
||||
|
||||
# 敏感信息只在需要时包含
|
||||
|
||||
Reference in New Issue
Block a user