This commit is contained in:
2026-06-10 17:20:43 +08:00
parent 1eb5fa2dc4
commit 9227961000
-5
View File
@@ -1,6 +1,5 @@
import logging
import os
import certifi
from datetime import datetime, timedelta
from sqlalchemy import select
@@ -157,10 +156,6 @@ 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()
config.timeout = 30
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