This commit is contained in:
2026-06-11 18:28:17 +08:00
parent bb5116ffd6
commit a637fdf213
4 changed files with 18 additions and 17 deletions
+1 -2
View File
@@ -112,9 +112,8 @@ async def wechat_callback(request: Request, db: AsyncSession = Depends(get_db)):
cert_serial_no = db_configs.get("payment_wechat_cert_serial_no", "")
api_v3_key = db_configs.get("payment_wechat_api_v3_key", "")
appid = db_configs.get("payment_wechat_appid", "")
gateway = db_configs.get("payment_wechat_gateway", "")
client = _get_wechat_client(mch_id, private_key, cert_serial_no, api_v3_key, appid, gateway)
client = _get_wechat_client(mch_id, private_key, cert_serial_no, api_v3_key, appid)
if not client:
logger.error("WeChat client not initialized for callback")
return {"code": "SUCCESS", "message": "OK"}