From a114a0f3f237ba70604e1c85052df5c76b7b9ac2 Mon Sep 17 00:00:00 2001 From: marco Date: Mon, 1 Jun 2026 20:44:46 +0800 Subject: [PATCH] =?UTF-8?q?docs(integrations/wxpay):=20=E5=88=A0=20code=5F?= =?UTF-8?q?to=5Fopenid=20=E8=A1=8C,=E8=B7=9F=E9=BD=90=209d1278c=20?= =?UTF-8?q?=E6=AD=BB=E4=BB=A3=E7=A0=81=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 9d1278c 已删 wxpay.py 的 code_to_openid 函数(能力被 code_to_userinfo 覆盖), docs 函数表里这一行没跟着删,补齐。 Co-Authored-By: Claude Opus 4.7 --- docs/integrations/wxpay.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/integrations/wxpay.md b/docs/integrations/wxpay.md index d0fd19b..df25264 100644 --- a/docs/integrations/wxpay.md +++ b/docs/integrations/wxpay.md @@ -12,7 +12,6 @@ | `query_transfer(out_bill_no)` | 按商户单号查转账单状态 | | `cancel_transfer(out_bill_no)` | 撤销转账单(仅 `WAIT_USER_CONFIRM`/`ACCEPTED` 可撤)。用户没在确认页确认就离开时调 | | `encrypt_sensitive(plain)` | 用微信支付平台公钥 OAEP(SHA1) 加密敏感信息(实名) | -| `code_to_openid(code)` | code 换 openid(`sns/oauth2`),失败抛 `ValueError` | | `code_to_userinfo(code)` | code 换 openid + 拉昵称头像,返回 `{openid, nickname, avatar_url, raw}` | ## 签名机制