【bug】 微信授权登录

This commit is contained in:
fengachen
2021-12-27 17:13:52 +08:00
parent 0b962abb11
commit b4a762e16d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ Page({
const that = this
wxBind((res)=>{
let params = {
openId: res.result.openid,
openId: encrypt(that.data.rsaPublicKey,res.result.openid),
rsaPublicKey: that.data.rsaPublicKey
}
// 需要判断是否绑定过微信,再进行绑定请求
+1 -1
View File
@@ -190,7 +190,7 @@ Page({
// 获取openid进行手机号和微信的绑定
wxBind((res)=>{
let params = {
openId: res.result.openid,
openId: encrypt(that.data.rsaPublicKey, res.result.openid),
rsaPublicKey: that.data.rsaPublicKey
}
// 需要判断是否绑定过微信,再进行绑定请求