获取手机号码getPhoneNumber,点击按钮回调没有返回code?

小程序 文章 2021-12-22 14:40 984 0 全屏看文

AI助手支持GPT4.0

获取手机号码getPhoneNumber,点击按钮回调没有返回code?Get the mobile phone number getPhoneNumber, click the button and the callback does not return the code?

获取手机号码getPhoneNumber,点击按钮回调没有返回code?

根据获取手机号码API点击按钮,回调函数返回参数只有{encryptedData,errMsg,iv}没有返回code,无法通过后端调用传参code获取手机号

Click the button according to the API to obtain the mobile phone number. The callback function returns only {encrypteddata, errmsg, IV} without returning code. It is impossible to obtain the mobile phone number by calling the reference code through the back-end

回答:

社区技术运营专员-horanzhou:

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

Life:
Lv: Max Human:

需要使用真机调试,需要基础库大于2.21.2,IDE在这周更新开发版会加上这个功能。

郭毅.:

看看你的基础库是不是2.12.2

brave:

① 确认当前基础库版本是否为 2.21.2 及以上。

② 目前开发者工具未兼容此表现(近期应该会同步),目前以真机调试为准。

Life:真机调试也没有的
brave:确定基础库被灰度到 2.21.2 了吗

-EOF-

AI助手支持GPT4.0