update pay ui

This commit is contained in:
2025-12-12 15:15:13 +08:00
parent c4e95e9c1e
commit 445a5226d5
2 changed files with 9 additions and 3 deletions

5
app.py
View File

@@ -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
)