wx.getUserProfile() 为什么在其它函数中调用不可以?
发布于 6 年前 作者 na20 10001 次浏览 来自 问答

开发者工具提示 errMsg: “getUserProfile:fail can only be invoked by user TAP gesture.”,使用方式为在其它函数的回调中调用 wx.getUserProfile(),只能是用户点击事件触发么?调试基础库 2.10.4

2 回复

那请问,后端如何知道当前新用户是哪个openid发起的getUserProfile呢?

是的,必须用户触发才行,不能自动调用。

回到顶部