服务端怎么获取用户信息?

小程序 文章 2021-03-10 20:41 483 0 全屏看文

AI助手支持GPT4.0

服务端怎么获取用户信息?How does the server obtain user information?

服务端怎么获取用户信息?

为什么我只看到了小程序端获取用户信息的api,后台有没有办法获取用户信息呢,服务端用户信息哪里只有一个这个auth.getPaidUnionId,但是说明写的是调用此接口前提是调用前需要用户完成支付,且在支付后的五分钟内有效。没搞很明白。

Why do I only see the API for getting user information on the small program side? Is there any way for the background to get user information? Where is the only user information on the server side auth.getPaidUnionId , but the description is to call this interface, provided that the user needs to complete the payment before calling, and it is valid within five minutes after payment. I don't understand.

回答:

跨商通:

小程序的服务端不能单独获取用户信息,没有这样的接口。

Samuel.Schrödinger:

目前还能wx.getUserInfo获取的数据去服务端解码 来达到服务端获取用户信息。现在这个接口要换了

换成wx.getUserProfile 获取信息传给服务器,就是后台获取用户信息

ZJG:这个小程序是可以直接获取到用户数据的对吧,
|G.XIAO|:

这个是微信付款码支付成功后,5分钟内能够获取用户的unionid。这个能力我记得需求申请

ZJG:嗯嗯

-EOF-

AI助手支持GPT4.0