所有方法 实例方法 抽象方法
限定符和类型 |
方法和说明 |
FastRegisterResult |
fastRegister(String ticket)
复用公众号快速注册小程序
注意:调用本接口的第三方平台必须是已经全网发布的,否则微信会报-1服务器繁忙错误,然后再报ticket无效错误,并且接口的使用次数会增加,同时还会生成一个废小程序
https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/Official_Accounts/fast_registration_of_mini_program.html
|
String |
getFastRegisterAuthUrl(String redirectUri,
Boolean copyWxVerify)
取复用公众号快速注册小程序的授权链接
https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/Official_Accounts/fast_registration_of_mini_program.html
|
WxAmpLinkResult |
getWxAmpLink()
|
WxOpenResult |
wxAmpUnLink(String appid)
-
-
方法详细资料
-
getFastRegisterAuthUrl
String getFastRegisterAuthUrl(String redirectUri,
Boolean copyWxVerify)
取复用公众号快速注册小程序的授权链接
https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/Official_Accounts/fast_registration_of_mini_program.html
- 参数:
redirectUri - 用户扫码授权后,MP 扫码页面将跳转到该地址(注:1.链接需 urlencode 2.Host 需和第三方平台在微信开放平台上面填写的登 录授权的发起页域名一致)
copyWxVerify - 是否复用公众号的资质进行微信认证,可空,默认false
- 返回:
- 返回授权链接 ,注意:由于微信开放平台限制,此链接直接使用后端301重定向微信会报错,必须是在第三方平台所在域名的页面的html或js触发跳转才能成功
-
fastRegister
FastRegisterResult fastRegister(String ticket)
throws WxErrorException
复用公众号快速注册小程序
注意:调用本接口的第三方平台必须是已经全网发布的,否则微信会报-1服务器繁忙错误,然后再报ticket无效错误,并且接口的使用次数会增加,同时还会生成一个废小程序
https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/Official_Accounts/fast_registration_of_mini_program.html
- 参数:
ticket - 公众号扫码授权的凭证(公众平台扫码页面回跳到第三方平台时携带)
- 返回:
- 返回授权码, 然后请使用第三方平台的sdk获得授权, 参考: WxOpenService.getWxOpenComponentService().getQueryAuth( fastRegisterResult.getAuthorizationCode() );
- 抛出:
WxErrorException - the wx error exception
Copyright © 2024. All rights reserved.
|