关于wx.login()的安全性问题,是不是共用的?

小程序 文章 2020-08-03 15:41 882 0 全屏看文

AI助手支持GPT4.0

关于wx.login()的安全性问题,是不是共用的?

wx.login()调用并没有去携带任何参数,这是不是意味着获取下来的code可以在不同的小程序里面做登录使用,比如我要登录这个A小程序,使用B小程序的wx.login()获取得到的code是否可以登录成功? 不同微信小程序的wx.login()获取到的code是否共用? 如果不共用,它是通过什么办法来分辨不同的微信小程序的?

wx.login () call does not carry any parameters. Does this mean that the code obtained can be used for login in different small programs. For example, I want to log in to the a small program and use the B program wx.login () can the obtained code log in successfully? Different wechat applets wx.login () is the code shared? If it is not shared, how can it distinguish different wechat applets?

回答:

Distance:

每个小程序都有自己的AppID你说呢?code只对对应的小程序有效……

冰箱:

不共用, APPID区分

จุ๊บ:

code 是微信返回的,每个小程序生成的code 肯定和小程序appid有绑定的,所以你是不可能用B的code 去登陆A小程序。

-EOF-

AI助手支持GPT4.0