小程序中webview打开h5授权问题
发布于 5 年前 作者 ming40 2796 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

android手机

程序结构是: 小程序里套一个webview     小程序不进行授权   webview 打开url 走微信h5授权 获取用户信息

现在遇到问题是:1. 首次进入小程序   在小程序中打开webview   访问h5    此时h5执行授权2.  授权时302 跳转到

https://open.weixin.qq.com/connect/oauth2/authorize?appid=#{appId}&redirect_uri=#{url}&response_type=code&scope=snsapi_userinfo&state=#{state}#wechat_redirect 此时的链接无返回http 状态码

这时会请求下面链接https://open.weixin.qq.com/connect/oauth2/authorize?appid=#{appId}&redirect_uri=#{url}&response_type=code&scope=snsapi_userinfo&state=#{state}&md=true&uin=#{uin}&key=#{ey}&pass_ticket=#{pass_ticket}

这时返回    该链接无法访问  html页

  • 预期表现

小程序打开webview 进行h5授权正常

4 回复

我们的是完全无法跳转

这边ios也有同样的问题

你好,问题已复现,我们会在后续版本中进行修复。

同样遇见这个问题,android下无法打开,提示 该链接无法打开

回到顶部