const AV = require('libs/av-weapp-min.js')
var APP_ID = 'r...';
var APP_KEY = 'T...';
AV.init({
appId: APP_ID,
appKey: APP_KEY,
});
AV.User.loginWithWeapp().then(user => {
console.log(user) //这句话OK
console.log(user.authenticated());//这句话OK
user.setMobilePhoneNumber('133333222')
/* 这句话提示 Failed to load resource: the server responded with a status of 400 (Bad Request) */
user.save()
谢谢~~