【修改】 微信授权登录2

This commit is contained in:
fengachen
2021-12-27 19:51:31 +08:00
parent b4a762e16d
commit da5f5f234c
+1 -1
View File
@@ -112,7 +112,7 @@ Page({
}) })
wxBind((res)=>{ wxBind((res)=>{
let params = { let params = {
openId: res.result.openid, openId: encrypt(that.data.rsaPublicKey,res.result.openid),
rsaPublicKey: that.data.rsaPublicKey rsaPublicKey: that.data.rsaPublicKey
} }
UserApi.wxLogin(params).then(res=>{ UserApi.wxLogin(params).then(res=>{