This commit is contained in:
2026-06-10 16:29:13 +08:00
parent 5fa71c62dd
commit 4c54ccfffd
2 changed files with 2 additions and 42 deletions
+2
View File
@@ -158,6 +158,8 @@ def _get_alipay_client(app_id: str, private_key: str, public_key: str, gateway:
config.sign_type = "RSA2"
config.charset = "utf-8"
config.cert_path = certifi.where()
os.environ["SSL_CERT_FILE"] = certifi.where()
os.environ["REQUESTS_CA_BUNDLE"] = certifi.where()
try:
_alipay_client = DefaultAlipayClient(config)
_alipay_client_app_id = app_id