流程通了

This commit is contained in:
yml2213
2026-08-12 17:30:00 +08:00
parent 03f5b8a6c4
commit cebbd94ae8
7 changed files with 124 additions and 56 deletions
@@ -152,7 +152,8 @@ def _start_payment(job_id: str, selection: dict) -> None:
pay_command = ["python3", "scripts/jsdom-pay.py", "--session", str(session),
"--mall-response", str(response), "--out-dir", str(output),
"--zone-id", str(selection["zone_id"]),
"--pf", str(selection.get("order_pf", ""))]
"--pf", str(selection.get("order_pf", "")),
"--amount-fen", str(selection["price_fen"])]
_run_process(job_id, pay_command, "payment")
threading.Thread(target=run, daemon=True).start()
@@ -280,6 +281,7 @@ class Handler(BaseHTTPRequestHandler):
return self._json(400, {"detail": "角色不可充值,请重新选择"})
_jobs[job_id]["selection"] = {
"platform": body["platform"], "points": product["points"],
"price_fen": product["price_fen"],
"product_id": product["product_id"], "offer_id": product["offer_id"],
"zone_id": zone["zone_id"], "zone_name": zone["name"],
"role_id": role["role_id"], "role_name": role["name"],