调用"getPhoneNumber"接口失败?

小程序 文章 2022-04-21 08:40 1789 0 全屏看文

AI助手支持GPT4.0

调用"getPhoneNumber"接口失败?Failed to call "getPhoneNumber" interface?

调用"getPhoneNumber"接口失败?

后台获取手机号时提示"invalid code"错误

接口:https://api.weixin.qq.com/wxa/business/getuserphonenumber

接口返回: {"errcode":40029,"errmsg":"invalid code hint: [c.kBsDOre-zs68Ha] rid: 62602f31-536ce76b-41efd0e6"}

后台获取手机号时提示"invalid code"错误 接口:https://api.weixin.qq.com/wxa/business/getuserphonenumber 接口返回: {"errcode":40029,"errmsg":"invalid code hint: [c.kBsDOre-zs68Ha] rid: 62602f31-536ce76b-41efd0e6"}

回答:

Mr.Zhao:

通过哪个api获取的code

拾忆:

模拟器无法模拟手机号,所以要以真机code测试为准。

Estn:

测试环境为:微信开发者工具, 并非真机

-EOF-

AI助手支持GPT4.0