ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
# .onTap ### UserInfoButton.onTap(function callback) 监听监听用户信息按钮的点击事件 #### 参数 ##### function callback 监听用户信息按钮的点击事件的回调函数 ###### 参数 **Object res** 属性类型说明支持版本userInfo[UserInfo](/read/wechat-game-api/254.md)用户信息对象,不包含 openid 等敏感信息rawDatastring不包括敏感信息的原始数据字符串,用于计算签名signaturestring使用 sha1( rawData + sessionkey ) 得到字符串,用于校验用户信息,参考文档[signature](https://developers.weixin.qq.com/minigame/dev/tutorial/open-ability/signature.html)encryptedDatastring包括敏感数据在内的完整用户信息的加密数据,详细见[加密数据解密算法](https://developers.weixin.qq.com/minigame/dev/tutorial/open-ability/signature.html)ivstring加密算法的初始向量,详细见[加密数据解密算法](https://developers.weixin.qq.com/minigame/dev/tutorial/open-ability/signature.html)> 原文: <https://developers.weixin.qq.com/minigame/dev/api/open-api/user-info/UserInfoButton.onTap.html>