文字缩进4格
AV.User.requestChangePhoneNumber("+8619201680101");
AV.User.changePhoneNumber("+8619201680101", "123456").then(
() => {
// 更新本地数据
const currentUser = AV.User.current();
currentUser.setMobilePhoneNumber("+8619201680101");
},
(error) => {
// 验证码不正确
}
);
响应内容:
{"code":401,"error":"Unauthorized."}