fix: 星阙提现改用club库商户号1747846572,禁止回落旧1746545364

优先读 club 表;为空时用正确 mch/api_v3_key;并从 apiclient_cert.pem 自动读序列号。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-07-10 22:29:20 +08:00
parent a28dafa6b7
commit 2e419b5b6e
4 changed files with 136 additions and 83 deletions

View File

@@ -39,9 +39,6 @@ def build_authorization(method, url, body, club_id=None):
private_key = load_private_key(club_id)
mchid = cfg['MCHID']
serial_no = (cfg.get('CERT_SERIAL_NO') or '').strip().upper()
if not serial_no:
from jituan.services.wechat_pay import WX_V3_CERT_SERIAL_NO_OVERRIDE
serial_no = WX_V3_CERT_SERIAL_NO_OVERRIDE
parsed = urlparse(url)
path = parsed.path