在公众号里设置菜单跳转地址如下:
https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxxxxxxxxxxxx&redirect_uri=http%3a%2f%2xxx.com%2ftweixin%2findex.html&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect
用微信手机端点击该公众号菜单,没有授权页面,但是能正常跳转到:xxx.com/weixin/index.html
但是问题来了:跳转后的url地址后面没有跟上参数 ?code=CODE&state=STATE
而我用
微信PC端点击该公众号菜单,出现授权提示页面,然后跳转到:
xxx.com/weixin/index.html?code=CODE&state=STATE
然后我用微信web开发者工具尝试访问那个菜单跳转地址,也出现授权提示页面,并且跳转到:
xxx.com/weixin/index.html?code=CODE&state=STATE
为什么微信手机端点击该菜单就没有附带code和state参数呢?
PS:手机端也没有错误返回码,没有报错也没有在url地址后面附带code
html页面是用的apache发布的