getPhoneNumber:fail privacy permission is not authorized,errno:104
时间: 2023-09-02 08:11:12 浏览: 262
getPhoneNumber:fail privacy permission is not authorized,errno:104是一个常见的错误,表示用户未授权获取手机号码的权限。在微信小程序中,为了保护用户隐私,获取用户手机号码需要用户明确授权。如果用户未授权或拒绝授权,就会出现这个错误。解决这个问题的方法是通过调用wx.authorize()方法,向用户请求获取手机号码的权限。在用户授权成功后,再调用wx.login()方法获取用户的手机号码。另外,如果仍然遇到问题,可能是由于网络连接的原因导致的。例如,Failed connect to 192.168.10.151:80; Connection refused错误可能是因为无法连接到指定的IP地址和端口。 这种情况下,你需要检查网络连接是否正常,并确保你的服务器正常运行。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [微信小程序 快速获取手机号 getphonenumber fail privacy permission is not authorized, errno: 104](https://blog.csdn.net/qubes/article/details/132310674)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Centos7 Ambari搭建大数据平台](https://blog.csdn.net/sxjxrxm/article/details/93844973)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文