diff --git a/video-gen-api/app/services/payment.py b/video-gen-api/app/services/payment.py index 4d0c05e5..db4ddbb6 100644 --- a/video-gen-api/app/services/payment.py +++ b/video-gen-api/app/services/payment.py @@ -1,6 +1,5 @@ import logging import os -import certifi from datetime import datetime, timedelta from sqlalchemy import select @@ -217,14 +216,12 @@ 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" - # 先尝试使用 certifi 证书 - config.ca_certificates = certifi.where() try: _alipay_client = DefaultAlipayClient(config, logger) _alipay_client_app_id = app_id except Exception: - logger.exception("Failed to initialize Alipay client with SSL verification") + logger.exception("Failed to initialize Alipay client") _alipay_client = None _alipay_client_app_id = None