From 817b2ec5cebbc66fe5554a29be474f6c6c6a3b00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BD=B3=E6=98=9F?= <417783514@qq.com> Date: Thu, 10 Jul 2025 13:43:33 +0000 Subject: [PATCH] =?UTF-8?q?fix(=E6=94=AF=E4=BB=98):=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E9=87=8C=E6=9C=89=E5=AD=98=E7=94=A8=E6=88=B7openid?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B=E4=B8=8D=E5=BC=B9=E5=87=BA?= =?UTF-8?q?=E2=80=9C=E8=AF=B7=E5=85=88=E7=BB=91=E5=AE=9A=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E5=86=8D=E4=BD=BF=E7=94=A8=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E2=80=9D=E7=9A=84=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王佳星 <417783514@qq.com> --- sheep/platform/pay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sheep/platform/pay.js b/sheep/platform/pay.js index ced3aa07..9655f8ae 100644 --- a/sheep/platform/pay.js +++ b/sheep/platform/pay.js @@ -93,7 +93,7 @@ export default class SheepPay { }; // 特殊逻辑:微信公众号、小程序支付时,必须传入 openid if (['wx_pub', 'wx_lite'].includes(channel)) { - const openid = await sheep.$platform.useProvider('wechat').getOpenid(); + const openid = await sheep.$platform.useProvider('wechat').getOpenid(true); // 如果获取不到 openid,微信无法发起支付,此时需要引导 if (!openid) { this.bindWeixin();