fix: pass Huihui token to production cashier

This commit is contained in:
stefanfeng
2026-10-22 09:29:56 +08:00
parent 33f53ff9d1
commit 03b343fd0b
3 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -455,8 +455,7 @@ def charge_via_huihui_org(payload: dict = Body(...), authorization: str = Header
db.add(order)
db.commit()
result = _payment_payload(order, get_or_create_account(db, user.id))
if "fat-open.99hui.com" in os.getenv("HUIHUI_ORG_BASE_URL", ""):
result["checkoutToken"] = user.huihui_token
result["checkoutToken"] = user.huihui_token
return ok(result)