From e6e24f9935ee6862a2afabf7686d2c43c318ff69 Mon Sep 17 00:00:00 2001 From: yunlongn Date: Thu, 27 Nov 2025 11:10:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E5=AE=9D=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sheep/platform/provider/alipay/miniProgram.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sheep/platform/provider/alipay/miniProgram.js b/sheep/platform/provider/alipay/miniProgram.js index e9555cf0..b22457ab 100644 --- a/sheep/platform/provider/alipay/miniProgram.js +++ b/sheep/platform/provider/alipay/miniProgram.js @@ -67,8 +67,11 @@ const mobileLogin = async (e) =>{ // 支付宝小程序绑定 const bind = () => { return new Promise(async (resolve, reject) => { - // 1. 获得微信 code - const codeResult = await uni.login(); + // 1. 获得支付宝小程序 code + const codeResult = await uni.login({ + provider: 'alipay', + scopes: 'auth_user', + }); if (codeResult.errMsg !== 'login:ok') { return resolve(false); }