当前位置:网站首页>WeChat applet getPhoneNumber interface code=40013
WeChat applet getPhoneNumber interface code=40013
2022-08-02 12:59:00 【· Code repair ·】
Record a problem encountered in the development process, obtain the user's mobile phone number through the getPhoneNum interface, and WeChat returns
code=40013, msg=invalid appid
Failed to get WeChat phone number, code=40013, msg=invalid appid
Invalid appid, then check the official interface documentation and find that we are not allowed to pass appid
phonenumber.getPhoneNumber | WeChat Open Documentation
But let's pass an interface call credential access_token, we need to pass the appId when we get this credential
auth.getAccessToken | WeChat Open Documentation
There is also a parameter code. This code is obtained by the applet through the wx.login interface. The WeChat applet has its own appid. If the appid we use to obtain the calling certificate is different from the appid used by the applet, it is better to obtain the mobile phone.will return 40013, invalid appId, the two appIds are the same.
边栏推荐
- 定了!2022世界VR产业大会将继续在南昌召开
- 数据湖(二):什么是Hudi
- svg气球升起爆炸js特效
- ssm access database data error
- photo-sphere-viewer Chinese documentation
- SQL Server 2019 installation error 0 x80004005 service there is no timely response to the start or control request a detailed solution
- sql concat()函数
- FreeRTOS创建任务--动态创建、静态创建
- 冰箱“扩容”的战事,在今夏格外猛烈
- Do you really understand the business process service BPass?
猜你喜欢
随机推荐
Seneor曝光基础知识
0801~面试题梳理
SQL Server 数据库之生成与执行 SQL 脚本
Four seasons of trees realized by svg
photo-sphere-viewer中文文档
30 lines of code to realize serverless real-time health code recognition -- operation manual
UAC绕过学习-总结
新特性解读 | MySQL 8.0 GIPK 不可见主键
js源码跳转的几种方式,在当前页面跳转,在空白页跳转
RESTful 风格(详细介绍 + 案例实现)
Article 48 - Analysis of timestamp2 parameters【2022-08-01】
Data Lake (3): Hudi Concept Terminology
Taurus.MVC V3.0.3 微服务开源框架发布:让.NET 架构在大并发的演进过程更简单。
package.json and package-lock.json
To eliminate air bubbles to save the mushroom h5 small game source code
Wireless vibrating wire acquisition instrument remote modification method
scrapy框架初识1
FreeRTOS creation tasks - dynamic creation, static creation
photo-sphere-viewer Chinese documentation
FreeRTOS--stack experiment