微信小程序获取手机号(getphonenumber)系统错误 errorcode:-10000
分类: 移动端开发
2018-05-13
浏览: 108
评论: 0
字数: 2414

问题描述

使用微信小程序的getphonenumber获取手机号

html
<!-- getPhoneNumber方法 -->
<button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"></button>

报错

用户点击授权手机号时, 弹出获取手机号失败 Error: 系统错误 errorCode:-1000

解决方案

查看AppId是否设置正确

查看步骤

  • 点击微信开发者工具的设置,选择项目设置
  • 项目设置中选择基本信息,查看AppId
点赞
打赏
本文标签:
本文链接:
版权声明:
本文由vscing原创发布,转载请遵循《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权