update ui
This commit is contained in:
4
app.py
4
app.py
@@ -1602,7 +1602,7 @@ def calculate_subscription_price():
|
|||||||
data = request.get_json()
|
data = request.get_json()
|
||||||
to_plan = data.get('to_plan')
|
to_plan = data.get('to_plan')
|
||||||
to_cycle = data.get('to_cycle')
|
to_cycle = data.get('to_cycle')
|
||||||
promo_code = data.get('promo_code', '').strip() or None
|
promo_code = (data.get('promo_code') or '').strip() or None
|
||||||
|
|
||||||
if not to_plan or not to_cycle:
|
if not to_plan or not to_cycle:
|
||||||
return jsonify({'success': False, 'error': '参数不完整'}), 400
|
return jsonify({'success': False, 'error': '参数不完整'}), 400
|
||||||
@@ -1638,7 +1638,7 @@ def create_payment_order():
|
|||||||
data = request.get_json()
|
data = request.get_json()
|
||||||
plan_name = data.get('plan_name')
|
plan_name = data.get('plan_name')
|
||||||
billing_cycle = data.get('billing_cycle')
|
billing_cycle = data.get('billing_cycle')
|
||||||
promo_code = data.get('promo_code', '').strip() or None
|
promo_code = (data.get('promo_code') or '').strip() or None
|
||||||
|
|
||||||
if not plan_name or not billing_cycle:
|
if not plan_name or not billing_cycle:
|
||||||
return jsonify({'success': False, 'error': '参数不完整'}), 400
|
return jsonify({'success': False, 'error': '参数不完整'}), 400
|
||||||
|
|||||||
Reference in New Issue
Block a user