{"errMsg":"login:fail send","errCode":-100,"code":-100,"innerCode":-6} 我已经反复确认 APPID 和签名 是对的 我重新自定义基座后还是不得行
// 微信授权
weixinAuth(){
return new Promise((resolve,reject)=>{
uni.login({
provider: 'weixin',
success: function(loginRes) {
let authRes=loginRes
if(loginRes.authResult){
authRes=Object.assign(authRes,loginRes.authResult)
}
// 加密信息
const weixinAuth =JSON.stringify(authRes) // encrypt(JSON.stringify(authRes), 'weixinAuth')
// 存本地
uni.setStorageSync('weixinAuth', weixinAuth);
resolve(authRes)
},
fail:(e)=>{
console.log(JSON.stringify(e))
this.$refs.confirmRef.$confirmModel({
content: e,
confirmButtonText: '好的'
})
reject(e)
}
});
})
},