登录时的问题?

小程序 文章 2020-09-09 10:21 536 0 全屏看文

AI助手支持GPT4.0

登录时的问题?Problems logging in?

登录时的问题?

后台给了一个接口,但是需要传code(已经拿到)、微信密码和微信唯一ID,后两个如何获取啊,哪位大神教教我

The background gives an interface, but it needs to pass the code (already got), wechat password and wechat unique ID. how to get the last two? Which God taught me

回答:

微喵网络:

这个后台可以开掉了,动动脑子,怎么可能搞到微信密码

听雨轩:如果做微信授权是不是只需要code码和唯一标识啊
迷失的故渊:

你只需要给他code就行了 openid再后台获取的

雅各布天梯:

叫后端看一下这张图

chen:

https://mp.weixin.qq.com/

登录后台,找到复制就行。

Mone:

只能获取如图这些参数

Oliver:

没啥好说的,文档很详细。

前端wx.login()拿到code,传code给后端auth.code2Session换取openid返回给前端,完事

https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/login.html

听雨轩:?没看懂你说的意思
子不语:code、appid、appsecret,这是微信登录需要的东西

请学会如何「提问」(👈戳我)【个体工商户】微信认证问题(👈戳我)

-EOF-

AI助手支持GPT4.0