This commit is contained in:
2026-06-10 15:33:28 +08:00
parent 383ac946af
commit 23b7140843
+2
View File
@@ -1,5 +1,6 @@
import logging
import os
import certifi
from datetime import datetime, timedelta
from sqlalchemy import select
@@ -156,6 +157,7 @@ def _get_alipay_client(app_id: str, private_key: str, public_key: str, gateway:
config.alipay_public_key = public_key
config.sign_type = "RSA2"
config.charset = "utf-8"
config.cert_path = certifi.where()
try:
_alipay_client = DefaultAlipayClient(config)