update pay ui
This commit is contained in:
5
app.py
5
app.py
@@ -2770,8 +2770,11 @@ def create_alipay_order():
|
||||
subject = f"VFr-{plan_display_name}"
|
||||
body = f"价值前沿订阅服务-{plan_display_name}"
|
||||
|
||||
# 金额格式化为两位小数(支付宝要求)
|
||||
amount_str = f"{float(amount):.2f}"
|
||||
|
||||
create_result = subprocess.run(
|
||||
[sys.executable, script_path, 'create', order.order_no, str(float(amount)), subject, body],
|
||||
[sys.executable, script_path, 'create', order.order_no, amount_str, subject, body],
|
||||
capture_output=True, text=True, timeout=60
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user