成都H5
成都H5
  • 发布:2021-09-26 23:55
  • 更新:2022-06-08 10:17
  • 阅读:1431

uni.login 无法调起微信授权 一直返回错误 -100

分类:uni-app

{"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)  
                    }  
                });  
            })  

        },
2021-09-26 23:55 负责人:无 分享
已邀请:
百倍

百倍

您好,解决了吗?

1***@qq.com

1***@qq.com

请问解决了吗,我也是遇到这个问题

该问题目前已经被锁定, 无法添加新回复