wx.getUserInfo
wx.getUserInfo({
withCredentials,
lang,
timeout,
success: (res) => {
console.log(res);
resolve(res);
},
fail: (res) => {
console.log(res); //返回{errMsg: “getUserInfo:fail system apperror”}
reject(res);
}
})