This commit is contained in:
hero920103 committed 2026-11-03 09:02:24 +08:00
commit 843d7164f6
66 files changed
+6976 -864

No files matched your search

+13
View File
@@ -122,6 +122,19 @@ export function loginByMiniapp({ code, phoneCode = '' } = {}) {
})
}
/**
* 小程序端确认注册:网页注册页展示的小程序码扫码进入本页,
* 用户点确认后由服务端把 openid 绑定到该注册会话,网页端即可继续注册。
* @param {{ scene: string, code: string, phoneCode?: string, appid?: string }} params
*/
export function confirmMiniappRegister({ scene, code, phoneCode = '', appid = '' } = {}) {
return request({
url: '/auth/register/mini/confirm',
method: 'POST',
data: { scene, code, phone_code: phoneCode, appid }
})
}
/**
* 已登录态下把当前微信 openid 绑定到该账号(静默调用,失败不提示)。
* 小程序认证中 / 未开通手机号能力时,一键登录靠这条绑定按 openid 认人。