Merge branch 'main' of gitee.com:wg123/video-gen into main

This commit is contained in:
18610128193
2026-06-10 16:38:25 +08:00
2 changed files with 3 additions and 48 deletions
+3 -6
View File
@@ -158,12 +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()
logger.info(
f"Initializing Alipay client: app_id={app_id}, gateway={config.server_url}, "
f"public_key={config.alipay_public_key}, "
f"private_key={config.app_private_key}, "
f"cert_path={config.cert_path}"
)
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
@@ -314,6 +310,7 @@ def _create_alipay_order(order: PaymentOrder, db_configs: dict[str, str]) -> str
model.out_trade_no = order.order_no
model.total_amount = f"{order.amount:.2f}"
model.subject = f"充值订单 {order.order_no}"
model.product_code = "QR_CODE_OFFLINE"
body_parts = []
if order.credits > 0: