html52.com
我爱小程序-开发者交流社区

小程序中webview打开h5授权问题

问题模块 框架类型 问题类型 终端类型 操作系统 微信版本 基础库版本
框架 小程序 Bug 客户端 Android 6.6.6 6.0.1

- 当前 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授权正常


网友回复

cunjinli:

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

彩玲:

这边ios也有同样的问题

大道至简:

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

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付