// 小程序登录
AV.User.loginWithWeapp().then(user => {
// 设置并保存手机号
user.setMobilePhoneNumber('13000000000');
return user.save();
}).then(user => {
// 发送验证短信
AV.User.requestMobilePhoneVerify(user.getMobilePhoneNumber());
}).then({
// 用户填写收到短信验证码后再调用 AV.User.verifyMobilePhone(code) 完成手机号的绑定
// 成功后用户将可以在其他平台上使用手机号动态验证码登录了
}).catch(console.error);
以上是官方文档说法,但没有写明如果验证短信验证码的有效性,AV.User.verifyMobilePhone(6位验证码)
提示400错误
-
创建时间
17年1月24日
-
最后回复
17年2月6日
-
17
回复
-
7.3K
浏览
-
4
用户
-
1
链接