静默执行wx.login然后后端用code2session获取用户的openid可以吗?整个过程不需要用户点击授权,都是静默的,这个微信是允许的吧?请各位大佬解答,谢谢!
静默执行wx.login然后code2session获取用户的openid可以吗?Is it possible to execute wx.login silently and then code2session to obtain the user's openid?
静默执行wx.login然后code2session获取用户的openid可以吗?静默执行wx.login然后后端用code2session获取用户的openid可以吗?整个过程不需要用户点击授权,都是静默的,这个微信是允许的吧?请各位大佬解答,谢谢!
Silent execution wx.login Can the back end get the user's openid with code2session? The whole process does not need user click authorization, it is silent, is this wechat allowed? Please answer, thank you!
回答:
可以,
需要手动点击授权的是getuserinfo,
两者的区别就是getuserinfo获取的信息多,
你说的静默的方式获取的信息少.
具体多了啥,少了啥,可以参考文档
为什么不可以?